From 5b4395ada1d4159261ceef55490168c518f4ffa6 Mon Sep 17 00:00:00 2001 From: TapTap Date: Mon, 6 Jul 2026 18:52:56 +0200 Subject: [PATCH] fix: build binaries before pre-flight checks in test.py --- test.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test.py b/test.py index c5b63f5..ac5281d 100755 --- a/test.py +++ b/test.py @@ -392,6 +392,10 @@ def preflight_checks(): def main(): + os.system("cmake -B build -S . > /dev/null 2>&1") + if os.system("cd build && make -j$(nproc) 2>&1 | tail -3") != 0: + print("Build failed") + sys.exit(1) preflight_checks() parser = argparse.ArgumentParser(description="FastSync integration test / benchmark") parser.add_argument("--source-dir", default=DEFAULT_SOURCE_DIR) @@ -401,11 +405,6 @@ def main(): parser.add_argument("--wan", action="store_true") args = parser.parse_args() - os.system("cmake -B build -S . > /dev/null 2>&1") - if os.system("cd build && make -j$(nproc) 2>&1 | tail -3") != 0: - print("Build failed") - sys.exit(1) - total_bytes = generate_test_files(args.source_dir) if os.path.exists(args.dest_dir): shutil.rmtree(args.dest_dir)