Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/test_run.py

    r64cf022 rf9128a5  
    4040                return os.path.normpath( os.path.join(settings.BUILDDIR, self.path, self.name) )
    4141
    42         @staticmethod
    43         def valid_name(name):
     42        @classmethod
     43        def valid_name(_, name):
    4444                return not name.endswith( ('.c', '.cc', '.cpp', '.cfa') )
    4545
    46         @staticmethod
    47         def new_target(target, arch):
     46        @classmethod
     47        def from_target(_, target):
    4848                test = Test()
    4949                test.name = os.path.basename(target)
    5050                test.path = os.path.relpath (os.path.dirname(target), settings.SRCDIR)
    51                 test.arch = arch.target if arch else ''
     51                test.arch = settings.arch.target if settings.arch.cross_compile else ''
    5252                return test
    5353
     
    7272                return text
    7373
    74         @staticmethod
    75         def fmtDur( duration ):
     74        @classmethod
     75        def fmtDur( cls, duration ):
    7676                if duration :
    7777                        hours, rem = divmod(duration, 3600)
Note: See TracChangeset for help on using the changeset viewer.