tests: sync ninja stdout/stderr instead of listing them separately

It is fairly confusing for all the "ninja explain" to be the last thing
you see, instead of the compile error.
pull/12188/head
Eli Schwartz 1 year ago
parent 0ecc8d5c8d
commit e7c30e803b
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 4
      run_project_tests.py

@ -711,8 +711,8 @@ def _run_test(test: TestDef,
# Build with subprocess
def build_step() -> None:
build_start = time.time()
pc, o, e = Popen_safe(compile_commands + dir_args, cwd=test_build_dir)
testresult.add_step(BuildStep.build, o, e, '', time.time() - build_start)
pc, o, _ = Popen_safe(compile_commands + dir_args, cwd=test_build_dir, stderr=subprocess.STDOUT)
testresult.add_step(BuildStep.build, o, '', '', time.time() - build_start)
if should_fail == 'build':
if pc.returncode != 0:
raise testresult

Loading…
Cancel
Save