Message ID | 20231105215221.1602465-3-adam.duskett@amarulasolutions.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/5] support/testing/infra/emulator.py: add a timeout argument for the login method | expand |
>>>>> "Adam" == Adam Duskett <adam.duskett@amarulasolutions.com> writes: > self.emulator.timeout_multiplier *= 10 is equivilent to 60 * 10 or 600. > Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com> Committed to 2023.02.x and 2023.08.x, thanks.
diff --git a/support/testing/tests/package/test_lxc.py b/support/testing/tests/package/test_lxc.py index 5be4782e2d..770cd10f30 100644 --- a/support/testing/tests/package/test_lxc.py +++ b/support/testing/tests/package/test_lxc.py @@ -33,9 +33,8 @@ class TestLxc(infra.basetest.BRTest): self.assertRunOk(cmd, 120) def wait_boot(self): - # the complete boot with systemd takes more time than what the default multipler permits - self.emulator.timeout_multiplier *= 10 - self.emulator.login() + # the complete boot with systemd takes more time than what the default multiplier permits + self.emulator.login(timeout=600) def setup_run_test_container(self): self.run_ok("lxc-create -n lxc_iperf3 -t none -f /usr/share/lxc/config/minimal-iperf3.conf")
self.emulator.timeout_multiplier *= 10 is equivilent to 60 * 10 or 600. Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com> --- support/testing/tests/package/test_lxc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)