firmware_Cr50Update: clear tpm owner during init

If the tpm is owned, the checking if rootfs verification is enabled will
fail. This change clears the tpm owner before querying the rootfs
verification state.

BUG=none
BRANCH=none
TEST=Login to the dut. Then run firmware_Cr50Update

Change-Id: I22e9740cb551adc72fd33e6d41df260fba50ed0f
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/471028
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
diff --git a/server/site_tests/firmware_Cr50Update/firmware_Cr50Update.py b/server/site_tests/firmware_Cr50Update/firmware_Cr50Update.py
index 1cbb467..510344b 100644
--- a/server/site_tests/firmware_Cr50Update/firmware_Cr50Update.py
+++ b/server/site_tests/firmware_Cr50Update/firmware_Cr50Update.py
@@ -7,7 +7,7 @@
 import time
 
 from autotest_lib.client.common_lib import error
-from autotest_lib.client.common_lib.cros import cr50_utils
+from autotest_lib.client.common_lib.cros import cr50_utils, tpm_utils
 from autotest_lib.server import autotest, test
 from autotest_lib.server.cros import debugd_dev_tools
 from autotest_lib.server.cros.faft.firmware_test import FirmwareTest
@@ -50,6 +50,7 @@
         # Make sure ccd is disabled so it won't interfere with the update
         self.cr50.ccd_disable()
 
+        tpm_utils.ClearTPMOwnerRequest(host)
         self.rootfs_tool = debugd_dev_tools.RootfsVerificationTool()
         self.rootfs_tool.initialize(host)
         if not self.rootfs_tool.is_enabled():