aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-02-09 18:31:56 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-02-09 18:51:05 +0100
commit3506d8daf2e67ad44d71f04943a427a42e96031f (patch)
tree5e76b9b5fcc36afaa8107e682e0e8a9dc7974807 /run_unittests.py
parentb1a9578091ad869be2bddaa381ce9092f178840c (diff)
downloadmeson-3506d8daf2e67ad44d71f04943a427a42e96031f.zip
meson-3506d8daf2e67ad44d71f04943a427a42e96031f.tar.gz
meson-3506d8daf2e67ad44d71f04943a427a42e96031f.tar.bz2
mtest: TestSetup can have [] as an exe_wrapper
Fix "meson test --wrapper foo --setup bar", it should work just fine if the setup does not define a wrapper. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 839f82b..8083342 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -2551,6 +2551,8 @@ class AllPlatformTests(BasePlatformTests):
self._run(self.mtest_command + ['--setup=onlyenv3'])
# Setup with only a timeout works
self._run(self.mtest_command + ['--setup=timeout'])
+ # Setup that does not define a wrapper works with --wrapper
+ self._run(self.mtest_command + ['--setup=timeout', '--wrapper', shutil.which('valgrind')])
# Setup that skips test works
self._run(self.mtest_command + ['--setup=good'])
with open(os.path.join(self.logdir, 'testlog-good.txt')) as f: