diff mbox

[13/13] KVM test: Fix a small bug on timedrift test

Message ID 1277171545-23003-13-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues June 22, 2010, 1:52 a.m. UTC
None
diff mbox

Patch

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)