diff mbox

KVM-test: Log the output of failed executed command 'pre/post-command'

Message ID 1265191554-9691-1-git-send-email-yzhou@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yolkfull Chow Feb. 3, 2010, 10:05 a.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm/kvm_preprocessing.py
index 4e45c76..53fa2cb 100644
--- a/client/tests/kvm/kvm_preprocessing.py
+++ b/client/tests/kvm/kvm_preprocessing.py
@@ -148,9 +148,11 @@  def process_command(test, params, env, command, command_timeout,
                                              logging.debug, "(command) ",
                                              timeout=command_timeout)
     if status != 0:
-        logging.warn("Custom processing command failed: '%s'" % command)
+        logging.warn("Custom processing command failed: '%s'; Output is: %s" %
+                                                            (command, output))
         if not command_noncritical:
-            raise error.TestError("Custom processing command failed")
+            raise error.TestError("Custom processing command failed: %s" %
+                                                                   output)
 
 
 def process(test, params, env, image_func, vm_func):