commit | d5347a785175c6b3511652c81a407f877911cff9 | [log] [tgz] |
---|---|---|
author | lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> | Sun Dec 27 20:16:45 2009 +0000 |
committer | lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> | Sun Dec 27 20:16:45 2009 +0000 |
tree | 4faa1a89aaa3a3fa3ff1382d949ac339a9186197 | |
parent | be931a8ffb4333e7d50e8076fbabf311a341f2bd [diff] |
KVM test: No need close session when login timeout On subtest timedrift_with_migration, if login times out, wait_for() will return 'None' and that will be assigned to 'session', yielding an Attribute error when calling session.close() afterwards. So let's call session.close only if session is not None. Signed-off-by: Amos Kong <akong@redhat.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@4055 592f7852-d20e-0410-864c-8624ca9c26a4