ia64/xen-unstable

view tools/xm-test/tests/vtpm/vtpm_utils.py @ 11487:d59d6a440a41

Revert change to vtpm_utils related to skipping the test when the tpm is not
found -- we need to skip the test on non-TPM platforms, of course.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Sep 15 23:54:04 2006 +0100 (2006-09-15)
parents 4bac02935c87
children
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2006
4 # Author: Stefan Berger <stefanb@us.ibm.com>
6 from XmTestLib import *
8 if ENABLE_HVM_SUPPORT:
9 SKIP("vtpm tests not supported for HVM domains")
11 if not os.path.exists("/dev/tpm0"):
12 SKIP("This machine has no hardware TPM; cannot run this test")
14 status, output = traceCommand("ps aux | grep vtpm_manager | grep -v grep")
15 if output == "":
16 FAIL("virtual TPM manager must be started to run this test")
18 def vtpm_cleanup(domName):
19 traceCommand("/etc/xen/scripts/vtpm-delete %s" % domName)