diff options
Diffstat (limited to 'test/test/autotest.py')
-rw-r--r-- | test/test/autotest.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/test/autotest.py b/test/test/autotest.py index 1cfd8cf2..12997fdf 100644 --- a/test/test/autotest.py +++ b/test/test/autotest.py @@ -36,14 +36,15 @@ cmdline = "%s -c f -n 4" % (sys.argv[1]) print(cmdline) -runner = autotest_runner.AutotestRunner(cmdline, target, test_blacklist, - test_whitelist) +# how many workers to run tests with. FreeBSD doesn't support multiple primary +# processes, so make it 1, otherwise make it 4. ignored for non-parallel tests +n_processes = 1 if "bsdapp" in target else 4 -for test_group in autotest_data.parallel_test_group_list: - runner.add_parallel_test_group(test_group) +runner = autotest_runner.AutotestRunner(cmdline, target, test_blacklist, + test_whitelist, n_processes) -for test_group in autotest_data.non_parallel_test_group_list: - runner.add_non_parallel_test_group(test_group) +runner.parallel_tests = autotest_data.parallel_test_list[:] +runner.non_parallel_tests = autotest_data.non_parallel_test_list[:] num_fails = runner.run_all_tests() |