test: show stdout and stderr in case of non-zero exit code from "tahoe" command
authorZooko O'Whielacronx <zooko@zooko.com>
Mon, 24 May 2010 07:33:48 +0000 (00:33 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Mon, 24 May 2010 07:33:48 +0000 (00:33 -0700)
src/allmydata/test/test_runner.py

index b543ecdb1161dfa8e0a79c1f1a039fb6b7cb4859..c617dd62fd24cf05ebb1186da59df7a7321a05ac 100644 (file)
@@ -37,7 +37,7 @@ class TheRightCode(common_util.SignalMixin, unittest.TestCase, SkipMixin):
         d = utils.getProcessOutputAndValue(bintahoe, args=["--version-and-path"], env=os.environ)
         def _cb(res):
             out, err, rc_or_sig = res
-            self.failUnlessEqual(rc_or_sig, 0)
+            self.failUnlessEqual(rc_or_sig, 0, str((out, err, rc_or_sig)))
 
             # Fail unless the allmydata-tahoe package is *this* version *and*
             # was loaded from *this* source directory.