From dbfae48efdca595fe7708c730dcd06ae2824979c Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 21 Nov 2024 16:58:17 +0000 Subject: [PATCH] Constrain ptest by cpu count --- run_tests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run_tests.py b/run_tests.py index 58116481b..e4a1dd991 100755 --- a/run_tests.py +++ b/run_tests.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 -import inspect -import os +import multiprocessing import sys sys.path.insert(0, "test") @@ -15,7 +14,7 @@ import test.client.test as p_client import test.lib.test as p_lib -test = ptest.PTest() +test = ptest.PTest(max_running=multiprocessing.cpu_count()*2) test.add_tests(p_client.tests, "test/client") test.add_tests(p_lib.tests, "test/lib") test.add_tests(p_ctrl.tests, "test/apps/ctrl")