[reprotest] 01/01: adt_testbed: add stdout/stderr to the "auxverb failed" error message, if available
Ximin Luo
infinity0 at debian.org
Thu Sep 22 16:28:05 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository reprotest.
commit 44d6ffc77b9a34920cf5b6100264b536f28362ae
Author: Ximin Luo <infinity0 at debian.org>
Date: Thu Sep 22 18:26:57 2016 +0200
adt_testbed: add stdout/stderr to the "auxverb failed" error message, if available
---
reprotest/lib/adt_testbed.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/reprotest/lib/adt_testbed.py b/reprotest/lib/adt_testbed.py
index c80e7c4..69085cb 100644
--- a/reprotest/lib/adt_testbed.py
+++ b/reprotest/lib/adt_testbed.py
@@ -427,7 +427,12 @@ class Testbed:
adtlog.debug('testbed command exited with code %i' % proc.returncode)
if proc.returncode in (254, 255):
- self.bomb('testbed auxverb failed with exit code %i' % proc.returncode)
+ msg = 'testbed auxverb failed with exit code %i' % proc.returncode
+ if out:
+ msg += '\n---- stdout ----\n%s----------------\n' % out
+ if err:
+ msg += '\n---- stderr ----\n%s----------------\n' % err
+ self.bomb(msg)
return (proc.returncode, out, err)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reprotest.git
More information about the Reproducible-commits
mailing list