Changes in / [692e6f1:76e2113]
- Location:
- tests
- Files:
-
- 3 edited
-
pybin/settings.py (modified) (2 diffs)
-
pybin/test_run.py (modified) (2 diffs)
-
test.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
r692e6f1 r76e2113 81 81 return True if not arch else self.target == arch 82 82 83 @ staticmethod84 def make_canonical( arch):83 @classmethod 84 def make_canonical(_, arch): 85 85 return Architecture.KnownArchitectures[arch] 86 86 … … 105 105 self.total = Timeouts.check(tg) 106 106 107 @ staticmethod108 def check( value):107 @classmethod 108 def check(_, value): 109 109 if value < 1: 110 110 print("Timeouts must be at least 1 second", file=sys.stderr) -
tests/pybin/test_run.py
r692e6f1 r76e2113 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 new_target(_, target, arch): 48 48 test = Test() 49 49 test.name = os.path.basename(target) … … 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) -
tests/test.py
r692e6f1 r76e2113 243 243 return False, "" 244 244 except Exception as ex: 245 print("Unexpected error in worker thread running {}: {}".format(t.target(), ex), file=sys.stderr)245 print("Unexpected error in worker thread: %s" % ex, file=sys.stderr) 246 246 sys.stderr.flush() 247 247 return False, ""
Note:
See TracChangeset
for help on using the changeset viewer.