Bug fixes for camera performance test.
BUG=None
TEST=Manual by sheckylin
Change-Id: I894b1226322ce5c6c3833773eda2e31905361d3d
Reviewed-on: https://gerrit.chromium.org/gerrit/30177
Reviewed-by: Tai-Hsu Lin <sheckylin@chromium.org>
Tested-by: Tai-Hsu Lin <sheckylin@chromium.org>
diff --git a/client/site_tests/factory_CameraPerformanceAls/factory_CameraPerformanceAls.py b/client/site_tests/factory_CameraPerformanceAls/factory_CameraPerformanceAls.py
index 137de39..0966a87 100644
--- a/client/site_tests/factory_CameraPerformanceAls/factory_CameraPerformanceAls.py
+++ b/client/site_tests/factory_CameraPerformanceAls/factory_CameraPerformanceAls.py
@@ -325,20 +325,14 @@
return True
def sync_fixture(self, event):
- # Prevent multiple threads from running at the same time.
- if hasattr(self, 'detecting_fixture') and self.detecting_fixture:
- return
- self.detecting_fixture = True
self.ui.CallJSFunction("OnDetectFixtureConnection")
cnt = 0
while not self.setup_fixture():
cnt += 1
if cnt >= self.config['fixture']['n_retry']:
- self.detecting_fixture = False
self.ui.CallJSFunction("OnRemoveFixtureConnection")
return
time.sleep(self.config['fixture']['retry_delay'])
- self.detecting_fixture = False
self.ui.CallJSFunction("OnAddFixtureConnection")
def on_u2s_insert(self, dev_path):