[reprotest] 01/02: don't error if the build command generates stderr
Ximin Luo
infinity0 at debian.org
Fri Sep 23 17:05:58 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 49e67cae0e6621541ee6f9ac9f5846018e7fc672
Author: Ximin Luo <infinity0 at debian.org>
Date: Fri Sep 23 18:52:08 2016 +0200
don't error if the build command generates stderr
---
reprotest/__init__.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index 602a2b9..b9df375 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -306,10 +306,11 @@ def build(script, source_root, dist_root, artifact_pattern, testbed, artifact_st
# new_script = new_script.append_cleanup(cd2)
print(new_script)
# exit_code, stdout, stderr = testbed.execute(['sh', '-ec', str(new_script)], xenv=[str(k) + '=' + str(v) for k, v in env.items()], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- testbed.check_exec(
- ['sh', '-ec', str(new_script)],
- xenv=[str(k) + '=' + str(v) for k, v in env.items()],
- kind='build')
+ argv = ['sh', '-ec', str(new_script)]
+ (code, _, _) = testbed.execute(
+ argv, xenv=['%s=%s' % (k, v) for k, v in env.items()], kind='build')
+ if code != 0:
+ testbed.bomb('"%s" failed with status %i' % (' '.join(argv), code), adtlog.AutopkgtestError)
# exit_code, stdout, stderr = testbed.execute(['lsof', source_root], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# print(exit_code, stdout, stderr)
# testbed.execute(['ls', '-l', source_root])
--
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