diff options
author | Ricardo Martincoski <ricardo.martincoski@gmail.com> | 2017-06-28 23:45:49 -0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-07-01 16:05:14 +0200 |
commit | 9bb306bd6411071cd07529923b825627502c794d (patch) | |
tree | 373b920f7e9599e59f8f9c39d6627878e75b5bea /support/testing/infra/emulator.py | |
parent | f98b93daaa8ed21783302fada55e6587f679e5cd (diff) | |
download | buildroot-9bb306bd6411071cd07529923b825627502c794d.tar.gz buildroot-9bb306bd6411071cd07529923b825627502c794d.zip |
support/testing: large timeout for login prompt
When running multiple instances of emulator in parallel, the login
prompt can take some time to appear.
Use a large timeout when waiting for the prompt to avoid random
failures.
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/testing/infra/emulator.py')
-rw-r--r-- | support/testing/infra/emulator.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/support/testing/infra/emulator.py b/support/testing/infra/emulator.py index 0f925fc9fb..a39d59b881 100644 --- a/support/testing/infra/emulator.py +++ b/support/testing/infra/emulator.py @@ -72,8 +72,10 @@ class Emulator(object): # Wait for the login prompt to appear, and then login as root with # the provided password, or no password if not specified. def login(self, password=None): + # The login prompt can take some time to appear when running multiple + # instances in parallel, so set the timeout to a large value index = self.qemu.expect(["buildroot login:", pexpect.TIMEOUT], - timeout=10) + timeout=60) if index != 0: self.logfile.write("==> System does not boot") raise SystemError("System does not boot") |