diff options
author | Alberto Sartori <alberto.sartori86@gmail.com> | 2018-04-14 21:17:02 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-14 22:17:02 +0300 |
commit | 717f7db67e27fedc4a3eb68bf2b46bf4384997c6 (patch) | |
tree | d70fd65054a35974d75137f2290220d373a72e9e /mesonbuild/mtest.py | |
parent | 2e5b2813d55f374e684f7ec9095cc681e30d8f46 (diff) | |
download | meson-717f7db67e27fedc4a3eb68bf2b46bf4384997c6.zip meson-717f7db67e27fedc4a3eb68bf2b46bf4384997c6.tar.gz meson-717f7db67e27fedc4a3eb68bf2b46bf4384997c6.tar.bz2 |
improve suite of meson test (#3369)
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r-- | mesonbuild/mtest.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 91567f2..110a94e 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -476,6 +476,25 @@ TIMEOUT: %4d (prj_match, st_match) = TestHarness.split_suite_string(suite) for prjst in test.suite: (prj, st) = TestHarness.split_suite_string(prjst) + + # the SUITE can be passed as + # suite_name + # or + # project_name:suite_name + # so we need to select only the test belonging to project_name + + # this if hanlde the first case (i.e., SUITE == suite_name) + + # in this way we can run tests belonging to different + # (sub)projects which share the same suite_name + if not st_match and st == prj_match: + return True + + # these two conditions are needed to handle the second option + # i.e., SUITE == project_name:suite_name + + # in this way we select the only the tests of + # project_name with suite_name if prj_match and prj != prj_match: continue if st_match and st != st_match: |