Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    ra2f2fda r99581ee  
    8585        def filter(self, tests):
    8686                return [test for test in tests if not test.arch or self.target == test.arch]
     87                return True if not arch else self.target == arch
    8788
    8889        @staticmethod
     
    100101        def __init__(self, ast):
    101102                if ast == "new":
    102                         self.target = ast
    103103                        self.string = "New AST"
    104104                        self.flags  = """AST_FLAGS=-XCFA,--new-ast"""
    105105                elif ast == "old":
    106                         self.target = ast
    107106                        self.string = "Old AST"
    108107                        self.flags  = """AST_FLAGS=-XCFA,--old-ast"""
    109108                elif ast == None:
    110                         self.target = "new" if config.NEWAST else "old"
    111                         self.string = "Default AST (%s)" % self.target
     109                        self.string = "Default AST (%s)" % ("new" if config.NEWAST else "old")
    112110                        self.flags  = """AST_FLAGS="""
    113111                else:
    114112                        print("""ERROR: Invalid ast configuration, must be "old", "new" or left unspecified, was %s""" % (value), file=sys.stderr)
    115                         sys.exit(1)
    116 
    117         def filter(self, tests):
    118 
    119                 return [test for test in tests if not test.astv or self.target == test.astv]
    120113
    121114class Install:
Note: See TracChangeset for help on using the changeset viewer.