diff mbox

[KVM-AUTOTEST,16/18] KVM test: kvm.py: set log file dir for kvm_subprocess logging

Message ID 1276820075-31310-16-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish June 18, 2010, 12:14 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.")