diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-02-07 12:03:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 12:03:10 +0000 |
commit | 034b81a09f20902c2d8cb907e162c7e6cb48e8c1 (patch) | |
tree | 80a1b89ab632663ec056d4007d06ba65482f0ec1 /run_unittests.py | |
parent | 8b82ffa9e423558d7644c7135db4114f59537829 (diff) | |
parent | c7c2bc8db111a5be277aeb14aecfe0d28ab286a9 (diff) | |
download | meson-034b81a09f20902c2d8cb907e162c7e6cb48e8c1.zip meson-034b81a09f20902c2d8cb907e162c7e6cb48e8c1.tar.gz meson-034b81a09f20902c2d8cb907e162c7e6cb48e8c1.tar.bz2 |
Merge pull request #8288 from bonzini/test-setup-exclude-suites
introduce add_test_setup(exclude suites: ...) keyword argument
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 7981df6..2e7fe91 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2550,6 +2550,16 @@ 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 skips test works + self._run(self.mtest_command + ['--setup=good']) + with open(os.path.join(self.logdir, 'testlog-good.txt')) as f: + exclude_suites_log = f.read() + self.assertFalse('buggy' in exclude_suites_log) + # --suite overrides add_test_setup(xclude_suites) + self._run(self.mtest_command + ['--setup=good', '--suite', 'buggy']) + with open(os.path.join(self.logdir, 'testlog-good.txt')) as f: + include_suites_log = f.read() + self.assertTrue('buggy' in include_suites_log) def test_testsetup_selection(self): testdir = os.path.join(self.unit_test_dir, '14 testsetup selection') |