aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-03-27 12:44:59 +0100
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-03-27 14:04:02 +0000
commit1e7ce3553b4b96e63935ab064b8e1114fa78cc84 (patch)
treec6c191bb1928e7f8a78860c6bc8cc9b8ccda7a28 /mesonbuild/mtest.py
parent826ddec4c6c359c9143881d9e002c80e21f3262a (diff)
downloadmeson-1e7ce3553b4b96e63935ab064b8e1114fa78cc84.zip
meson-1e7ce3553b4b96e63935ab064b8e1114fa78cc84.tar.gz
meson-1e7ce3553b4b96e63935ab064b8e1114fa78cc84.tar.bz2
do not use Executor if only one process was requested
This will make verbose output nicer, since it will not interleave the test stdout/stderr and the test results.
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 77a0f82..dc82084 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -893,7 +893,7 @@ Timeout: %4d
visible_name = self.get_pretty_suite(test)
single_test = self.get_test_runner(test)
- if not test.is_parallel or single_test.options.gdb:
+ if not test.is_parallel or self.options.num_processes == 1 or single_test.options.gdb:
self.drain_futures(futures)
futures = []
res = single_test.run()