Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-schwartz committed Nov 17, 2024
1 parent 00b331e commit 5b173ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion run_project_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,14 @@ def _run_test(test: TestDef,
# Build with subprocess
def build_step() -> None:
build_start = time.time()
pc, o, _ = Popen_safe(compile_commands + dir_args, cwd=test_build_dir, stderr=subprocess.STDOUT)

if backend is Backend.ninja:
# FIXME: meson test inprocess does not handle running ninja via StringIO
targets = ['all', 'meson-test-prereq', 'meson-benchmark-prereq']
else:
targets = []

pc, o, _ = Popen_safe(compile_commands + dir_args + targets, 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:
Expand Down

0 comments on commit 5b173ed

Please sign in to comment.