diff mbox

[KVM-AUTOTEST] KVM test: kvm_vm.py: remove serial console file when VM is destroyed

Message ID 1277683389-31605-1-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish June 28, 2010, 12:03 a.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index c5234c8..46b0aa3 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -717,7 +717,8 @@  class VM:
                 self.process.close()
             if self.serial_console:
                 self.serial_console.close()
-            for f in ([self.get_testlog_filename()] +
+            for f in ([self.get_testlog_filename(),
+                       self.get_serial_console_filename()] +
                       self.get_monitor_filenames()):
                 try:
                     os.unlink(f)