From: Lucas Meneghel Rodrigues Subject: Re: [Autotest] [KVM-AUTOTEST PATCH] KVM test: kvm_tests: fix a litte bug in timedrift() Date: Fri, 28 Aug 2009 14:30:14 -0300 Message-ID: <6ac58f4f0908281030r12c1bb3bu47bb5f31e4dca0a@mail.gmail.com> References: <1251453326-29140-1-git-send-email-kcao@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: autotest@test.kernel.org, kvm@vger.kernel.org To: "Cao, Chen" Return-path: Received: from mail-vw0-f195.google.com ([209.85.212.195]:36644 "EHLO mail-vw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751700AbZH1RaO convert rfc822-to-8bit (ORCPT ); Fri, 28 Aug 2009 13:30:14 -0400 Received: by vws33 with SMTP id 33so1635404vws.33 for ; Fri, 28 Aug 2009 10:30:15 -0700 (PDT) In-Reply-To: <1251453326-29140-1-git-send-email-kcao@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Ok, applied, thanks! On Fri, Aug 28, 2009 at 6:55 AM, Cao, Chen wrote: > the original version compared a wrong drift value with given threshol= d. > > Signed-off-by: Cao, Chen > --- > =A0client/tests/kvm/kvm_tests.py | =A0 =A02 +- > =A01 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/client/tests/kvm/kvm_tests.py b/client/tests/kvm/kvm_tes= ts.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): > =A0 =A0 # Fail the test if necessary > =A0 =A0 if drift > drift_threshold: > =A0 =A0 =A0 =A0 raise error.TestFail("Time drift too large: %.2f%%" %= drift) > - =A0 =A0if drift > drift_threshold_after_rest: > + =A0 =A0if drift_total > drift_threshold_after_rest: > =A0 =A0 =A0 =A0 raise error.TestFail("Time drift too large after rest= period: %.2f%%" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0% drift_to= tal) > > -- > 1.6.0.6 > > _______________________________________________ > Autotest mailing list > Autotest@test.kernel.org > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest > --=20 Lucas