From patchwork Wed Dec 2 10:06:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 64214 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB2A8DBM002555 for ; Wed, 2 Dec 2009 10:08:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752359AbZLBKIE (ORCPT ); Wed, 2 Dec 2009 05:08:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752464AbZLBKIE (ORCPT ); Wed, 2 Dec 2009 05:08:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40110 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752359AbZLBKID (ORCPT ); Wed, 2 Dec 2009 05:08:03 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nB2A88GL001486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Dec 2009 05:08:09 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nB2A88DE013826; Wed, 2 Dec 2009 05:08:08 -0500 Received: from localhost.localdomain (dhcp-1-188.tlv.redhat.com [10.35.1.188]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id nB2A84rF015926; Wed, 2 Dec 2009 05:08:07 -0500 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH] KVM test: step file tests: apply timeout_multiplier to 'sleep' as well as barriers Date: Wed, 2 Dec 2009 12:06:00 +0200 Message-Id: <1259748361-21909-1-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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":