diff options
author | Hemmo Nieminen <hemmo.nieminen@iki.fi> | 2022-02-01 00:00:00 +0200 |
---|---|---|
committer | Hemmo Nieminen <hemmo.nieminen@iki.fi> | 2022-03-23 00:00:00 +0200 |
commit | 4b64776fce28f00ebb226a70b55a8bccebab9350 (patch) | |
tree | c1df585edf52151419becfddd672a4f8f479910c | |
parent | 33feccc23024b480abe64d3cabec17ef3b89b611 (diff) | |
download | meson-4b64776fce28f00ebb226a70b55a8bccebab9350.zip meson-4b64776fce28f00ebb226a70b55a8bccebab9350.tar.gz meson-4b64776fce28f00ebb226a70b55a8bccebab9350.tar.bz2 |
mtest: print "live" test output when verbose with only 1 test
Since running only one test sort of implies --num-processes=1 the "live"
output of the test should be printed out when --verbose option has been
given and running only a single test.
-rw-r--r-- | mesonbuild/mtest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index d8f51b2..4d126b4 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -1686,6 +1686,8 @@ class TestHarness: sys.exit(125) self.name_max_len = max(uniwidth(self.get_pretty_suite(test)) for test in tests) + self.options.num_processes = min(self.options.num_processes, + len(tests) * self.options.repeat) startdir = os.getcwd() try: os.chdir(self.options.wd) |