CHERRY-PICK: Fix autotest support for a new TPM class directory.
Kernel TPM patches from 4.x moved /sys/class/misc/tpm0 to /sys/class/tpm/tpm0.
The last attempt to support both paths in firmware_TPMExtend failed to
differentiate between host and device operation. Rather than add a second
device operation to check the path, simply use the wildcard to find the
This assumes (safely, I think) that the system has only one tpm0.
TEST=Confirm firmware_TPMExtend gives valid "Dumping PCRs read from device"
data in both 3.18 and 3.14 kernels.
Commit-Ready: Bryan Freed <email@example.com>
Tested-by: Bryan Freed <firstname.lastname@example.org>
Reviewed-by: Julius Werner <email@example.com>
(cherry picked from commit 0b271ea59e5d8dbabdd07a766ba166f166a9baa5)
Reviewed-by: David Wu <firstname.lastname@example.org>
Reviewed-by: Duncan Laurie <email@example.com>
Commit-Queue: David Wu <firstname.lastname@example.org>
Tested-by: David Wu <email@example.com>
1 file changed