Message ID | 1258317594-3858-1-git-send-email-lmr@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/client/tests/kvm/tests/migration.py b/client/tests/kvm/tests/migration.py index 7b80e51..21df1e2 100644 --- a/client/tests/kvm/tests/migration.py +++ b/client/tests/kvm/tests/migration.py @@ -74,9 +74,10 @@ def run_migration(test, params, env): finally: # Kill the background process - if session2.is_alive(): - session2.get_command_output(params.get("migration_bg_kill_command", - "")) + if session2: + if session2.is_alive(): + session2.get_command_output( + params.get("migration_bg_kill_command", "")) session2.close() session.close()