From: Andrew Bartlett Date: Tue, 19 Nov 2019 21:55:18 +0000 (+1300) Subject: python: Return the stdout when also checking error codes X-Git-Tag: ldb-2.1.0~659 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24fa3374e041f9ad26b6f124aed0c5a61a7d551e;p=thirdparty%2Fsamba.git python: Return the stdout when also checking error codes This will aid in checking that ndrdump behaves as expected when failing to parse Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py index fef21d261ca..3f22eaa1c94 100644 --- a/python/samba/tests/__init__.py +++ b/python/samba/tests/__init__.py @@ -438,6 +438,7 @@ class BlackboxTestCase(TestCaseInTempDir): stdoutdata, stderrdata, msg) + return stdoutdata def check_output(self, line): use_shell = not isinstance(line, list)