Wait in measure_startup.py after broken pipe
Change-Id: I4be9dd301033a5573e1b7ac202f3fc7bdc357274
diff --git a/tools/startup/adb_utils.py b/tools/startup/adb_utils.py
index 3df82d5..2369aa7 100755
--- a/tools/startup/adb_utils.py
+++ b/tools/startup/adb_utils.py
@@ -340,6 +340,10 @@
stderr = process_result.stderr.decode('utf-8')
if process_result.returncode == 0:
assert 'Success' in stdout
+ elif stdout.startswith('cmd: Failure calling service package: Broken pipe'):
+ assert app_id == 'com.google.android.youtube'
+ print('Waiting after broken pipe')
+ time.sleep(15)
else:
expected_error = (
'java.lang.IllegalArgumentException: Unknown package: %s' % app_id)