Skip to content

Commit dbfae48

Browse files
committed
Constrain ptest by cpu count
1 parent 77a62fb commit dbfae48

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

run_tests.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python3
22

3-
import inspect
4-
import os
3+
import multiprocessing
54
import sys
65

76
sys.path.insert(0, "test")
@@ -15,7 +14,7 @@
1514
import test.client.test as p_client
1615
import test.lib.test as p_lib
1716

18-
test = ptest.PTest()
17+
test = ptest.PTest(max_running=multiprocessing.cpu_count()*2)
1918
test.add_tests(p_client.tests, "test/client")
2019
test.add_tests(p_lib.tests, "test/lib")
2120
test.add_tests(p_ctrl.tests, "test/apps/ctrl")

0 commit comments

Comments
 (0)