From: Stefan Berger Subject: [PATCH][XM-TEST] Remove test for missing device tpm0 Date: Mon, 25 Sep 2006 19:31:18 -0400 Message-ID: <1159227078.13404.6.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-1nyOMRtRlEZliRjmKS6w" 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 Cc: Ewan Mellor List-Id: xen-devel@lists.xenproject.org --=-1nyOMRtRlEZliRjmKS6w Content-Type: text/plain Content-Transfer-Encoding: 7bit Remove the test for /dev/tpm0, which may be a prerequisite to start the vtpm_manager. A 'SKIP' is shown if the vtpm_manager process has not been started. Signed-off-by: Stefan Berger --=-1nyOMRtRlEZliRjmKS6w Content-Disposition: attachment; filename=xm-test-vtpm-skip-if-not-tpm0.diff Content-Type: text/x-patch; name=xm-test-vtpm-skip-if-not-tpm0.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/xm-test/tests/vtpm/vtpm_utils.py =================================================================== --- root.orig/xen-unstable.hg/tools/xm-test/tests/vtpm/vtpm_utils.py +++ root/xen-unstable.hg/tools/xm-test/tests/vtpm/vtpm_utils.py @@ -8,12 +8,10 @@ from XmTestLib import * if ENABLE_HVM_SUPPORT: SKIP("vtpm tests not supported for HVM domains") -if not os.path.exists("/dev/tpm0"): - SKIP("This machine has no hardware TPM; cannot run this test") - status, output = traceCommand("ps aux | grep vtpm_manager | grep -v grep") if output == "": - FAIL("virtual TPM manager must be started to run this test") + SKIP("virtual TPM manager must be started to run this test; might " + "need /dev/tpm0") def vtpm_cleanup(domName): traceCommand("/etc/xen/scripts/vtpm-delete %s" % domName) --=-1nyOMRtRlEZliRjmKS6w 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 --=-1nyOMRtRlEZliRjmKS6w--