Changes in tests/pybin/test_run.py [64cf022:f9128a5]
- File:
-
- 1 edited
-
tests/pybin/test_run.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/test_run.py
r64cf022 rf9128a5 40 40 return os.path.normpath( os.path.join(settings.BUILDDIR, self.path, self.name) ) 41 41 42 @ staticmethod43 def valid_name( name):42 @classmethod 43 def valid_name(_, name): 44 44 return not name.endswith( ('.c', '.cc', '.cpp', '.cfa') ) 45 45 46 @ staticmethod47 def new_target(target, arch):46 @classmethod 47 def from_target(_, target): 48 48 test = Test() 49 49 test.name = os.path.basename(target) 50 50 test.path = os.path.relpath (os.path.dirname(target), settings.SRCDIR) 51 test.arch = arch.target if archelse ''51 test.arch = settings.arch.target if settings.arch.cross_compile else '' 52 52 return test 53 53 … … 72 72 return text 73 73 74 @ staticmethod75 def fmtDur( duration ):74 @classmethod 75 def fmtDur( cls, duration ): 76 76 if duration : 77 77 hours, rem = divmod(duration, 3600)
Note:
See TracChangeset
for help on using the changeset viewer.