diff mbox

[08/13] KVM test: kvm.py: set log file dir for kvm_subprocess logging

Message ID 1277171545-23003-8-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/kvm.py b/client/tests/kvm/kvm.py
index bab1e6f..0799cff 100644
--- a/client/tests/kvm/kvm.py
+++ b/client/tests/kvm/kvm.py
@@ -31,6 +31,10 @@  class kvm(test.test):
             logging.debug("    %s = %s", key, params[key])
             self.write_test_keyval({key: params[key]})
 
+        # Set the log file dir for the logging mechanism used by kvm_subprocess
+        # (this must be done before unpickling env)
+        kvm_utils.set_log_file_dir(self.debugdir)
+
         # Open the environment file
         logging.info("Unpickling env. You may see some harmless error "
                      "messages.")