diff options
author | Ying Chen <chying@google.com> | 2015-12-18 18:13:27 -0800 |
---|---|---|
committer | Ying Chen <chying@google.com> | 2015-12-18 18:18:35 -0800 |
commit | 755a7bdc14dc2c8d494338be16800f0ad3a423a4 (patch) | |
tree | 1b27adf820de4961eb0d44f70c927c50d4adaa6d | |
parent | 443b8adec73bd1320f199fa73281e90c2120f40d (diff) | |
download | adt-infra-755a7bdc14dc2c8d494338be16800f0ad3a423a4.tar.gz |
Increase wait time to 15 seconds to test if lauch process has failed
- It takes ~10 seconds for emulator process to quit in some failure cases
Change-Id: Idd3887ea2ceafba896d0511d4df771b21f4462e6
-rw-r--r-- | emu_test/utils/emu_testcase.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/emu_test/utils/emu_testcase.py b/emu_test/utils/emu_testcase.py index e26fd49b..c768d956 100644 --- a/emu_test/utils/emu_testcase.py +++ b/emu_test/utils/emu_testcase.py @@ -138,7 +138,10 @@ class EmuBaseTestCase(LoggedTestCase): self.m_logger.info('Launching AVD, cmd: %s', ' '.join(launch_cmd)) t_launch = threading.Thread(target=launch_in_thread) t_launch.start() - time.sleep(5) + # TODO: decrease the wait time + # It is noticed that it takes ~10 seconds for process to quit in some failiure cases + # But if the boot up time improves to be under 15 seconds, we will need to fine tune this wait time + time.sleep(15) if self.start_proc.poll() or not find_emu_proc(): raise LaunchError(str(avd)) |