From patchwork Fri Aug 28 09:55:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Cao, Chen" X-Patchwork-Id: 44423 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 n7S9tbLs020495 for ; Fri, 28 Aug 2009 09:55:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751249AbZH1JzZ (ORCPT ); Fri, 28 Aug 2009 05:55:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751386AbZH1JzZ (ORCPT ); Fri, 28 Aug 2009 05:55:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44107 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbZH1JzY (ORCPT ); Fri, 28 Aug 2009 05:55:24 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7S9tPYu001094; Fri, 28 Aug 2009 05:55:25 -0400 Received: from localhost.localdomain ([10.66.70.146]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7S9tNCb015158; Fri, 28 Aug 2009 05:55:23 -0400 From: "Cao, Chen" To: lmr@redhat.com Cc: mgoldish@redhat.com, autotest@test.kernel.org, kvm@vger.kernel.org, "Cao, Chen" Subject: [KVM-AUTOTEST PATCH] KVM test: kvm_tests: fix a litte bug in timedrift() Date: Fri, 28 Aug 2009 17:55:26 +0800 Message-Id: <1251453326-29140-1-git-send-email-kcao@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org the original version compared a wrong drift value with given threshold. Signed-off-by: Cao, Chen --- client/tests/kvm/kvm_tests.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_tests.py b/client/tests/kvm/kvm_tests.py index b100269..4e3391e 100644 --- a/client/tests/kvm/kvm_tests.py +++ b/client/tests/kvm/kvm_tests.py @@ -773,7 +773,7 @@ def run_timedrift(test, params, env): # Fail the test if necessary if drift > drift_threshold: raise error.TestFail("Time drift too large: %.2f%%" % drift) - if drift > drift_threshold_after_rest: + if drift_total > drift_threshold_after_rest: raise error.TestFail("Time drift too large after rest period: %.2f%%" % drift_total)