Force remove locking from GCS when device dies during test.
Test: HAL Fuzz Test
Bug: 112279165
Change-Id: Iaa58a957a8f6118b128d5b561ea0a3aa2dfcf46f
diff --git a/template/libfuzzer_test/libfuzzer_test.py b/template/libfuzzer_test/libfuzzer_test.py
index 3235166..ba4ea03 100644
--- a/template/libfuzzer_test/libfuzzer_test.py
+++ b/template/libfuzzer_test/libfuzzer_test.py
@@ -211,6 +211,8 @@
self._temp_dir)
except adb.AdbError as e:
logging.exception(e)
+ logging.error('Device failed. Removing lock from GCS.')
+ self._corpus_manager.remove_lock(test_case._test_name)
if inuse_seed is not 'directory':
self.EvaluateTestcase(test_case, result, inuse_seed)