Skip to content

Commit

Permalink
Constrain ptest by cpu count
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Nov 21, 2024
1 parent 77a62fb commit dbfae48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions run_tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python3

import inspect
import os
import multiprocessing
import sys

sys.path.insert(0, "test")
Expand All @@ -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")
Expand Down

0 comments on commit dbfae48

Please sign in to comment.