Skip to content

Commit c14f071

Browse files
committed
build: bootstrap runs tests in parallel
1 parent c156a05 commit c14f071

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bootstrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,8 @@ def install_mrdocs(self):
798798
ctest_path = os.path.join(os.path.dirname(self.options.cmake_path), "ctest")
799799
if not os.path.exists(ctest_path):
800800
raise FileNotFoundError(f"ctest executable not found at {ctest_path}. Please ensure CMake is installed correctly.")
801-
# --parallel 4 --no-tests=error --progress --output-on-failure
802-
test_args = [ctest_path, "--test-dir", self.options.mrdocs_build_dir, "--output-on-failure", "--progress", "--no-tests=error", "--output-on-failure"]
801+
test_args = [ctest_path, "--test-dir", self.options.mrdocs_build_dir, "--output-on-failure", "--progress",
802+
"--no-tests=error", "--output-on-failure", "--parallel", str(os.cpu_count() or 1)]
803803
self.run_cmd(test_args)
804804

805805
print(f"\nMrDocs has been successfully installed in {self.options.mrdocs_install_dir}.\n")

0 commit comments

Comments
 (0)