From c64d4070763b2daf82a50a7b4f5b130b2bb91062 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 17 Jan 2021 17:52:27 +0200 Subject: Fix cases where text leaks to stdout in unit tests. --- run_unittests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'run_unittests.py') 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)) -- cgit v1.1