support/testing: allow to use a multiplier for timeouts
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sat, 5 Aug 2017 02:05:19 +0000 (23:05 -0300)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thu, 10 Aug 2017 08:08:06 +0000 (10:08 +0200)
commit6e45e33f27d5ae6fa0ab5aad3f032d886a886037
tree14dc7955a31e639ceabd20c59399765162842355
parent128a16aceeb43d7d22b10c6845f7c4d09439e031
support/testing: allow to use a multiplier for timeouts

Add a parameter to run-tests to act as a multiplier for all timeouts of
emulator.
It can be used to avoid sporadic failures on slow host machines as well
in elastic runners on the cloud.

Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
[Arnout: rename multiplier to timeout_multiplier everywhere]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
support/testing/infra/basetest.py
support/testing/infra/emulator.py
support/testing/run-tests