python: Return the stdout when also checking error codes
authorAndrew Bartlett <abartlet@samba.org>
Tue, 19 Nov 2019 21:55:18 +0000 (10:55 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 20 Nov 2019 04:41:28 +0000 (04:41 +0000)
This will aid in checking that ndrdump behaves as expected when
failing to parse

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/tests/__init__.py

index fef21d261cac2f860b2e75c39328c7afce9898a6..3f22eaa1c94c98c24a4e12f99a2dae65b3ab4676 100644 (file)
@@ -438,6 +438,7 @@ class BlackboxTestCase(TestCaseInTempDir):
                                        stdoutdata,
                                        stderrdata,
                                        msg)
+        return stdoutdata
 
     def check_output(self, line):
         use_shell = not isinstance(line, list)