Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    r64cf022 r136f86b  
    2323class Architecture:
    2424        KnownArchitectures = {
    25                 'x64'         : 'x64',
    26                 'x86-64'      : 'x64',
    27                 'x86_64'      : 'x64',
    28                 'x86'         : 'x86',
    29                 'aarch64'     : 'arm',
    30                 'i386'        : 'x86',
    31                 'i486'        : 'x86',
    32                 'i686'        : 'x86',
    33                 'Intel 80386' : 'x86',
    34                 'arm'         : 'arm',
    35                 'ARM'         : 'arm',
     25                'x64'           : 'x64',
     26                'x86-64'        : 'x64',
     27                'x86_64'        : 'x64',
     28                'x86'           : 'x86',
     29                'aarch64'       : 'arm',
     30                'i386'          : 'x86',
     31                'i486'          : 'x86',
     32                'i686'          : 'x86',
     33                'Intel 80386'   : 'x86',
     34                'arm'           : 'arm',
     35                'ARM'           : 'arm',
    3636        }
    3737
     
    8181                return True if not arch else self.target == arch
    8282
    83         @staticmethod
    84         def make_canonical(arch):
     83        @classmethod
     84        def make_canonical(_, arch):
    8585                return Architecture.KnownArchitectures[arch]
    8686
     
    105105                self.total  = Timeouts.check(tg)
    106106
    107         @staticmethod
    108         def check(value):
     107        @classmethod
     108        def check(_, value):
    109109                if value < 1:
    110110                        print("Timeouts must be at least 1 second", file=sys.stderr)
     
    129129        global timeout2gdb
    130130
    131         all_arch     = [Architecture(o) for o in list(dict.fromkeys(options.arch   ))] if options.arch else [Architecture(None)]
     131        all_arch     = [Architecture(o) for o in list(dict.fromkeys(options.arch   ))]
    132132        all_debug    = [Debug(o)        for o in list(dict.fromkeys(options.debug  ))]
    133133        all_install  = [Install(o)      for o in list(dict.fromkeys(options.install))]
Note: See TracChangeset for help on using the changeset viewer.