support/testing/tests/package/test_python_django.py: fix timeout calculation.
timeout = 35 * self.emulator.timeout_multiplier
[...]
self.assertRunOk(cmd, timeout=timeout)
Gets re-multiplied by self.emulator.timeout_multiplier in self.emulator.run().
Drop multiplying the timeout by self.emulator.timeout_multiplier to fix this
issue.
Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 9a81c7a7a4
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
c9e4f18658
commit
8e407fcc2b
@ -6,7 +6,7 @@ class TestPythonDjango(TestPythonPackageBase):
|
||||
sample_scripts = ["tests/package/sample_python_django.py"]
|
||||
|
||||
def run_sample_scripts(self):
|
||||
timeout = 35 * self.emulator.timeout_multiplier
|
||||
timeout = 35
|
||||
|
||||
cmd = "cd /opt && /usr/bin/django-admin startproject testsite"
|
||||
self.assertRunOk(cmd, timeout=timeout)
|
||||
|
Loading…
Reference in New Issue
Block a user