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
right file.
This assumes (safely, I think) that the system has only one tpm0.

BUG=chrome-os-partner:49763
TEST=Confirm firmware_TPMExtend gives valid "Dumping PCRs read from device"
     data in both 3.18 and 3.14 kernels.

Original Change-Id: I06626370c8ae90fd8fb754a9b2a6bd895e46ad62
Original Reviewed-on: https://chromium-review.googlesource.com/328817
Original Commit-Ready: Bryan Freed <bfreed@chromium.org>
Original Tested-by: Bryan Freed <bfreed@chromium.org>
Original Reviewed-by: Julius Werner <jwerner@chromium.org>

Change-Id: Id6571af86335d3e2603301ad12451540ed4b17d5
Signed-off-by: Luke_Yin@asus.com <Luke_Yin@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/328863
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Commit-Queue: Bernie Thompson <bhthompson@chromium.org>
1 file changed