From patchwork Wed Feb 3 10:05:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yolkfull Chow X-Patchwork-Id: 76673 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o13A61dQ030980 for ; Wed, 3 Feb 2010 10:06:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932405Ab0BCKGA (ORCPT ); Wed, 3 Feb 2010 05:06:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:17391 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932401Ab0BCKF7 (ORCPT ); Wed, 3 Feb 2010 05:05:59 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o13A5wIJ025821 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Feb 2010 05:05:58 -0500 Received: from localhost.localdomain (dhcp-65-181.nay.redhat.com [10.66.65.181]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o13A5t0a023872; Wed, 3 Feb 2010 05:05:56 -0500 From: Yolkfull Chow To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Yolkfull Chow Subject: [PATCH] KVM-test: Log the output of failed executed command 'pre/post-command' Date: Wed, 3 Feb 2010 18:05:54 +0800 Message-Id: <1265191554-9691-1-git-send-email-yzhou@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 03 Feb 2010 10:06:01 +0000 (UTC) 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):