[PATCH] be more verbose when autotest scheduling fails

Kamil Páral kparal at redhat.com
Wed Sep 1 13:15:42 UTC 2010


---
 autoqa |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/autoqa b/autoqa
index 8fd7dee..e0848ea 100755
--- a/autoqa
+++ b/autoqa
@@ -128,7 +128,7 @@ def maybe_call(cmdlist, dryrun=False, verbose=False):
     try:
         return call(cmdlist)
     except OSError, e:
-        print "Command failed: %s" % str(e)
+        print "Error: Command failed: %s\n  %s" % (' '.join(cmdlist), e)
         return None
 
 def schedule_job(controlfile, required_arch=None, email=None, name=None, dryrun=False, labels=[]):
-- 
1.7.2.2



More information about the autoqa-devel mailing list