[KVM-AUTOTEST PATCH] KVM test: step file tests: apply timeout_multiplier to 'sleep' as well as barriers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Michael Goldish <mgoldish@xxxxxxxxxx>
---
 client/tests/kvm/tests/steps.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/tests/steps.py b/client/tests/kvm/tests/steps.py
index 11b2ae1..456fb44 100644
--- a/client/tests/kvm/tests/steps.py
+++ b/client/tests/kvm/tests/steps.py
@@ -225,7 +225,8 @@ def run_steps(test, params, env):
         elif skip_current_step:
             continue
         elif words[0] == "sleep":
-            time.sleep(float(words[1]))
+            timeout_multiplier = float(params.get("timeout_multiplier") or 1)
+            time.sleep(float(words[1]) * timeout_multiplier)
         elif words[0] == "key":
             vm.send_key(words[1])
         elif words[0] == "var":
-- 
1.5.4.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux