diff mbox

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

Message ID 1259748361-21909-1-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish Dec. 2, 2009, 10:06 a.m. UTC
None
diff mbox

Patch

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":