From: Stefan Berger Subject: [PATCH][XMTEST - vTPM] proper cleanup in case of failure Date: Thu, 06 Apr 2006 12:27:06 -0400 Message-ID: <1144340826.4007.2.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-+pWW7p9NFwBJaEz46hfe" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --=-+pWW7p9NFwBJaEz46hfe Content-Type: text/plain Content-Transfer-Encoding: 7bit This adds proper cleanup in case of a failure. Signed-off-by: Stefan Berger --=-+pWW7p9NFwBJaEz46hfe Content-Disposition: attachment; filename=vtpm-xmtest.diff Content-Type: text/x-patch; name=vtpm-xmtest.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/xm-test/tests/vtpm/03_vtpm-susp_res.py =================================================================== --- root.orig/xen-unstable.hg/tools/xm-test/tests/vtpm/03_vtpm-susp_res.py +++ root/xen-unstable.hg/tools/xm-test/tests/vtpm/03_vtpm-susp_res.py @@ -47,6 +47,7 @@ except ConsoleError, e: FAIL(str(e)) if re.search("No such file",run["output"]): + vtpm_cleanup(domName) FAIL("TPM frontend support not compiled into (domU?) kernel") console.closeConsole() Index: root/xen-unstable.hg/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py =================================================================== --- root.orig/xen-unstable.hg/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py +++ root/xen-unstable.hg/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py @@ -46,6 +46,7 @@ except ConsoleError, e: FAIL(str(e)) if re.search("No such file",run["output"]): + vtpm_cleanup(domName) FAIL("TPM frontend support not compiled into (domU?) kernel") console.closeConsole() --=-+pWW7p9NFwBJaEz46hfe Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-+pWW7p9NFwBJaEz46hfe--