aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-01-17 17:52:27 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-01-17 17:52:27 +0200
commitccd9100d6b6e67707f683b2712011b280d6a330f (patch)
treeaee972998d39a3eafcd3852ab22bf5959e0b159b
parent903c8716e373f829ef1d48712b26ad61d576436b (diff)
downloadmeson-testsilencing.zip
meson-testsilencing.tar.gz
meson-testsilencing.tar.bz2
Fix cases where text leaks to stdout in unit tests.testsilencing
-rwxr-xr-xrun_unittests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py
index e40ebc4..c89b822 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3378,7 +3378,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertFalse(os.path.isdir(scommondir))
self.assertNotEqual(subprocess.call(self.wrap_command + ['promote', 'scommon'],
cwd=workdir,
- stdout=subprocess.DEVNULL), 0)
+ stderr=subprocess.DEVNULL), 0)
self.assertNotEqual(subprocess.call(self.wrap_command + ['promote', 'invalid/path/to/scommon'],
cwd=workdir,
stderr=subprocess.DEVNULL), 0)
@@ -3401,7 +3401,7 @@ class AllPlatformTests(BasePlatformTests):
ambiguous_wrap = os.path.join(spdir, 'ambiguous.wrap')
self.assertNotEqual(subprocess.call(self.wrap_command + ['promote', 'ambiguous'],
cwd=workdir,
- stdout=subprocess.DEVNULL), 0)
+ stderr=subprocess.DEVNULL), 0)
self.assertFalse(os.path.isfile(ambiguous_wrap))
subprocess.check_call(self.wrap_command + ['promote', 'subprojects/s2/subprojects/ambiguous.wrap'], cwd=workdir)
self.assertTrue(os.path.isfile(ambiguous_wrap))