Changeset 136f86b for tests/pybin/settings.py
- Timestamp:
- Mar 27, 2020, 11:45:09 AM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 68887f9
- Parents:
- 2980667
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
r2980667 r136f86b 77 77 print("updated to %s" % self.target) 78 78 79 def match(self, arch): 79 def filter(self, tests): 80 return [test for test in tests if not test.arch or self.target == test.arch] 80 81 return True if not arch else self.target == arch 81 82 … … 113 114 114 115 def init( options ): 116 global all_arch 117 global all_debug 118 global all_install 115 119 global arch 116 120 global archive 121 global continue_ 117 122 global debug 118 global distcc119 123 global dry_run 120 124 global generating … … 125 129 global timeout2gdb 126 130 127 arch = Architecture(options.arch) 131 all_arch = [Architecture(o) for o in list(dict.fromkeys(options.arch ))] 132 all_debug = [Debug(o) for o in list(dict.fromkeys(options.debug ))] 133 all_install = [Install(o) for o in list(dict.fromkeys(options.install))] 128 134 archive = os.path.abspath(os.path.join(original_path, options.archive_errors)) if options.archive_errors else None 129 debug = Debug(options.debug)135 continue_ = options.continue_ 130 136 dry_run = options.dry_run # must be called before tools.config_hash() 131 distcc = "DISTCC_CFA_PATH=~/.cfadistcc/%s/cfa" % tools.config_hash()132 137 generating = options.regenerate_expected 133 install = Install(options.install)134 138 make = ['make'] 135 139 output_width = 24 … … 148 152 149 153 def validate(): 154 """Validate the current configuration and update globals""" 155 156 global distcc 157 distcc = "DISTCC_CFA_PATH=~/.cfadistcc/%s/cfa" % tools.config_hash() 150 158 errf = os.path.join(BUILDDIR, ".validate.err") 151 159 make_ret, out = tools.make( ".validate", error_file = errf, output_file=subprocess.DEVNULL, error=subprocess.DEVNULL )
Note: See TracChangeset
for help on using the changeset viewer.