From patchwork Mon Jun 13 16:26:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jiri Zupka X-Patchwork-Id: 875142 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5DGQRh3026981 for ; Mon, 13 Jun 2011 16:26:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753350Ab1FMQ0Y (ORCPT ); Mon, 13 Jun 2011 12:26:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61215 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751752Ab1FMQ0Y (ORCPT ); Mon, 13 Jun 2011 12:26:24 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5DGQNhg029676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 13 Jun 2011 12:26:23 -0400 Received: from jzupka.local.com (vpn1-6-206.ams2.redhat.com [10.36.6.206]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p5DGQKsa030041; Mon, 13 Jun 2011 12:26:21 -0400 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=BDupka?= To: kvm-autotest@redhat.com, kvm@vger.kernel.org, autotest@test.kernel.org, lmr@redhat.com, ldoktor@redhat.com, akong@redhat.com Cc: jzupka@redhat.com Subject: [AUTOTEST][PATCH 1/2] Subtest return test result. Date: Mon, 13 Jun 2011 18:26:17 +0200 Message-Id: <1307982378-27250-1-git-send-email-jzupka@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 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.6 (demeter2.kernel.org [140.211.167.43]); Mon, 13 Jun 2011 16:26:27 +0000 (UTC) If subtest is successful runsubtest returns True otherwise False. Signed-off-by: Ji?í Župka --- client/common_lib/test.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/common_lib/test.py b/client/common_lib/test.py index d5564c3..5b2e12c 100644 --- a/client/common_lib/test.py +++ b/client/common_lib/test.py @@ -479,8 +479,8 @@ class base_test(object): """ dargs["profile_only"] = dargs.get("profile_only", False) test_basepath = self.outputdir[len(self.job.resultdir + "/"):] - self.job.run_test(url, master_testpath=test_basepath, - *args, **dargs) + return self.job.run_test(url, master_testpath=test_basepath, + *args, **dargs) def _get_nonstar_args(func):