diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2018-12-30 15:45:28 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2019-01-16 11:16:46 -0500 |
commit | 815f1205a8d2eb78fa71057c593f4eec3746aad3 (patch) | |
tree | 31ec4c012c7c577a002f47dd02aa7096b5ba17a8 /run_unittests.py | |
parent | af643d64096ab85df5fc65aad9713ea4bed63f4e (diff) | |
download | meson-815f1205a8d2eb78fa71057c593f4eec3746aad3.zip meson-815f1205a8d2eb78fa71057c593f4eec3746aad3.tar.gz meson-815f1205a8d2eb78fa71057c593f4eec3746aad3.tar.bz2 |
do_subproject: Improve log messages and formatting
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/run_unittests.py b/run_unittests.py index 11060ce..4d04254 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -3502,23 +3502,22 @@ class FailureTests(BasePlatformTests): Test that: 1. The correct message is outputted when a not-required dep is not found and the fallback subproject is also not found. - 2. A not-found not-required dep with a fallback subproject outputs the + 2. A not-required fallback dependency is not found because the + subproject failed to parse. + 3. A not-found not-required dep with a fallback subproject outputs the correct message when the fallback subproject is found but the variable inside it is not. - 3. A fallback dependency is found from the subproject parsed in (2) - 4. A not-required fallback dependency is not found because the - subproject failed to parse. + 4. A fallback dependency is found from the subproject parsed in (3) + 5. The correct message is outputted when the .wrap file is missing for + a sub-subproject. ''' tdir = os.path.join(self.unit_test_dir, '20 subproj dep variables') out = self.init(tdir, inprocess=True) - self.assertRegex(out, r"Couldn't use fallback subproject " - "in.*subprojects.*nosubproj.*for the dependency.*somedep") - self.assertRegex(out, r'Dependency.*somenotfounddep.*from subproject.*' - 'subprojects.*somesubproj.*found:.*NO') - self.assertRegex(out, r'Dependency.*zlibproxy.*from subproject.*' - 'subprojects.*somesubproj.*found:.*YES.*(cached)') - self.assertRegex(out, r'Couldn\'t use fallback subproject in ' - '.*subprojects.*failingsubproj.*for the dependency.*somedep') + self.assertRegex(out, r"Subproject directory not found and .*nosubproj.wrap.* file not found") + self.assertRegex(out, r'Function does not take positional arguments.') + self.assertRegex(out, r'WARNING:.* Dependency .*subsubproject.* not found but it is available in a sub-subproject.') + self.assertRegex(out, r'Subproject directory not found and .*subsubproject.wrap.* file not found') + self.assertRegex(out, r'Dependency .*zlibproxy.* from subproject .*subprojects.*somesubproj.* found: .*YES.*') def test_exception_exit_status(self): ''' |