Changes in tests/pybin/settings.py [cc9b520:a2f2fda]
- File:
-
- 1 edited
-
tests/pybin/settings.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
rcc9b520 ra2f2fda 155 155 global generating 156 156 global make 157 global make_jobfds158 157 global output_width 159 158 global timeout … … 169 168 generating = options.regenerate_expected 170 169 make = ['make'] 171 make_jobfds = []172 170 output_width = 24 173 171 timeout = Timeouts(options.timeout, options.global_timeout) … … 179 177 os.putenv('DISTCC_LOG', os.path.join(BUILDDIR, 'distcc_error.log')) 180 178 181 def update_make_cmd(f lags):179 def update_make_cmd(force, jobs): 182 180 global make 183 make = ['make', *flags] 184 185 def update_make_fds(r, w): 186 global make_jobfds 187 make_jobfds = (r, w) 181 182 make = ['make'] if not force else ['make', "-j%i" % jobs] 188 183 189 184 def validate(): … … 192 187 global distcc 193 188 distcc = "DISTCC_CFA_PATH=~/.cfadistcc/%s/cfa" % tools.config_hash() 194 make_ret, out, err = tools.make( ".validate", output_file=subprocess.PIPE, error=subprocess.PIPE ) 189 errf = os.path.join(BUILDDIR, ".validate.err") 190 make_ret, out = tools.make( ".validate", error_file = errf, output_file=subprocess.DEVNULL, error=subprocess.DEVNULL ) 195 191 if make_ret != 0: 192 with open (errf, "r") as myfile: 193 error=myfile.read() 196 194 print("ERROR: Invalid configuration %s:%s" % (arch.string, debug.string), file=sys.stderr) 197 print(" verify returned : \n%s" % err, file=sys.stderr) 195 print(" verify returned : \n%s" % error, file=sys.stderr) 196 tools.rm(errf) 198 197 sys.exit(1) 198 199 tools.rm(errf) 199 200 200 201 def prep_output(tests):
Note:
See TracChangeset
for help on using the changeset viewer.