[h5py] 301/455: Update automation
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.
commit 670d9d8d02dcc9b1a695571cf2c72fac65e5da28
Author: andrewcollette <andrew.collette at gmail.com>
Date: Wed Jul 22 06:35:10 2009 +0000
Update automation
---
autotest.py | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/autotest.py b/autotest.py
index e37e494..fb6070a 100644
--- a/autotest.py
+++ b/autotest.py
@@ -28,12 +28,13 @@ def iterconfigs(cfile):
class CommandFailed(Exception):
pass
-def do_cmd(cmd):
+def do_cmd(cmd, context=""):
debug(cmd)
s, o = getstatusoutput(cmd)
if s != 0:
- msg = "Command failed: %s" % cmd
- msg += '\n'+'-'*len(msg)
+ msg = "Command failed: %s\n" % cmd
+ msg += "Context: %s\n" % context
+ msg += o
print msg
raise CommandFailed(cmd)
@@ -58,9 +59,9 @@ def run():
for p in pythons:
for c in configs:
try:
- do_cmd('%s setup.py configure %s' % (p, c))
- do_cmd('%s setup.py build' % p)
- do_cmd('%s setup.py test' %p)
+ do_cmd('%s setup.py configure %s' % (p, c), c)
+ do_cmd('%s setup.py build' % p, c)
+ do_cmd('%s setup.py test' %p, c)
except CommandFailed:
failed = True
finally:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git
More information about the debian-science-commits
mailing list