Changes in tests/pybin/settings.py [a2f2fda:99581ee]
- File:
-
- 1 edited
-
tests/pybin/settings.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
ra2f2fda r99581ee 85 85 def filter(self, tests): 86 86 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 87 88 88 89 @staticmethod … … 100 101 def __init__(self, ast): 101 102 if ast == "new": 102 self.target = ast103 103 self.string = "New AST" 104 104 self.flags = """AST_FLAGS=-XCFA,--new-ast""" 105 105 elif ast == "old": 106 self.target = ast107 106 self.string = "Old AST" 108 107 self.flags = """AST_FLAGS=-XCFA,--old-ast""" 109 108 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") 112 110 self.flags = """AST_FLAGS=""" 113 111 else: 114 112 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]120 113 121 114 class Install:
Note:
See TracChangeset
for help on using the changeset viewer.