aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-12-15 11:21:40 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2021-01-14 18:29:28 +0000
commit5db77fd103eb7a1248791402caa3c977f6a8241c (patch)
tree0a36ad98d8c8db4f8dbae1eff9c326486f1b5d6f /run_unittests.py
parent4b3d48a8c94e28e12dc928fb343f52f3b669510d (diff)
downloadmeson-5db77fd103eb7a1248791402caa3c977f6a8241c.zip
meson-5db77fd103eb7a1248791402caa3c977f6a8241c.tar.gz
meson-5db77fd103eb7a1248791402caa3c977f6a8241c.tar.bz2
coredata: Add missing nopromote wrap_mode choice
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 58ebff4..e40ebc4 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -2295,6 +2295,12 @@ class AllPlatformTests(BasePlatformTests):
self.build()
self.run_tests()
+ def test_nopromote(self):
+ testdir = os.path.join(self.common_test_dir, '99 subproject subdir')
+ with self.assertRaises(subprocess.CalledProcessError) as cm:
+ self.init(testdir, extra_args=['--wrap-mode=nopromote'])
+ self.assertIn('Dependency "subsub" not found', cm.exception.stdout)
+
def test_force_fallback_for(self):
testdir = os.path.join(self.unit_test_dir, '31 forcefallback')
self.init(testdir, extra_args=['--force-fallback-for=zlib,foo'])