diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-17 17:52:27 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-18 19:55:42 +0000 |
commit | c64d4070763b2daf82a50a7b4f5b130b2bb91062 (patch) | |
tree | 81a2d53fe09ca81ae1376e6043bd9aa78ec633d3 | |
parent | efe7270429ae13bdce58835998303d969a6f6df7 (diff) | |
download | meson-c64d4070763b2daf82a50a7b4f5b130b2bb91062.zip meson-c64d4070763b2daf82a50a7b4f5b130b2bb91062.tar.gz meson-c64d4070763b2daf82a50a7b4f5b130b2bb91062.tar.bz2 |
Fix cases where text leaks to stdout in unit tests.
-rwxr-xr-x | run_unittests.py | 4 |
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)) |