mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
the vtpm_manager. A 'SKIP' is shown if the vtpm_manager process has not been started. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 lines
508 B
Python
18 lines
508 B
Python
#!/usr/bin/python
|
|
|
|
# Copyright (C) International Business Machines Corp., 2006
|
|
# Author: Stefan Berger <stefanb@us.ibm.com>
|
|
|
|
from XmTestLib import *
|
|
|
|
if ENABLE_HVM_SUPPORT:
|
|
SKIP("vtpm tests not supported for HVM domains")
|
|
|
|
status, output = traceCommand("ps aux | grep vtpm_manager | grep -v grep")
|
|
if output == "":
|
|
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)
|