From patchwork Tue Jun 22 01:52:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 107332 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5M1r0EO008342 for ; Tue, 22 Jun 2010 01:53:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758815Ab0FVBw5 (ORCPT ); Mon, 21 Jun 2010 21:52:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57974 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758811Ab0FVBwz (ORCPT ); Mon, 21 Jun 2010 21:52:55 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5M1qsQF029581 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 21 Jun 2010 21:52:54 -0400 Received: from localhost.localdomain (vpn-11-188.rdu.redhat.com [10.11.11.188]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5M1qRtv011261; Mon, 21 Jun 2010 21:52:53 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues , Michael Goldish Subject: [PATCH 13/13] KVM test: Fix a small bug on timedrift test Date: Mon, 21 Jun 2010 22:52:25 -0300 Message-Id: <1277171545-23003-13-git-send-email-lmr@redhat.com> In-Reply-To: <1277171545-23003-1-git-send-email-lmr@redhat.com> References: <1277171545-23003-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 22 Jun 2010 01:53:00 +0000 (UTC) diff --git a/client/tests/kvm/tests/timedrift.py b/client/tests/kvm/tests/timedrift.py index 028b74c..a6d3076 100644 --- a/client/tests/kvm/tests/timedrift.py +++ b/client/tests/kvm/tests/timedrift.py @@ -90,6 +90,11 @@ def run_timedrift(test, params, env): load_session = vm.remote_login() if not load_session: raise error.TestFail("Could not log into guest") + # Set output func to None to stop it from being called so we + # can change the callback function and the parameters it takes + # with no problems + load_session.set_output_func(None) + load_session.set_output_params(()) load_session.set_output_prefix("(guest load %d) " % i) load_session.set_output_func(logging.debug) guest_load_sessions.append(load_session)