Fix for testing for device file
PATCH 1/1 Fix for testing for device file
The patch fixes a problem when testing for device /dev/tpm0. The API call os.path.exists() must be called instead of os.path.isfile().
Signed-off-by Stefan Berger <[email protected]>
xen-unstable.hg/tools/xm-test/tests/vtpm/vtpm_utils.py +1 -1
@@ -8,7 +8,7 @@ from XmTestLib import * if ENABLE_HVM_SUPPORT: SKIP("vtpm tests not supported for HVM domains") -if not os.path.isfile("/dev/tpm0"): +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")
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Ewan Mellor
AppliedQuoted 4 lines · Stefan Berger
The patch fixes a problem when testing for device
/dev/tpm0. The API callos.path.exists()must be called instead ofos.path.isfile().Signed-off-by Stefan Berger <[email protected]>
Applied, thanks. Sorry, for breaking it in the first place.
Ewan.