KVM test: unattended_install.py style changes
commit114a3a20ff48fd2d87e9407c6e574722ce46f3ea
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Thu, 13 Jan 2011 00:41:36 +0000 (13 00:41 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Thu, 13 Jan 2011 00:41:36 +0000 (13 00:41 +0000)
tree388b136d15e7cb4fa487267ab00ad89482373c32
parent9aab5839dd2634fd76310d03f53ffc041e570636
KVM test: unattended_install.py style changes

- Use vm.verify_alive() instead of vm.is_alive().
- Use error.context() so that if verify_alive() fails the resulting
  error
  message will be clearer.
- Make the code a little bit shorter.
- Catch VMAddressError (can be raised by vm.get_address()).
- Use double quotes for consistency.
- Modify debug messages.

Changes from v2:
- Re-added the decorator error.context_aware

Changes from v1:
- Rebase against latest upstream

Signed-off-by: Michael Goldish <mgoldish@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5148 592f7852-d20e-0410-864c-8624ca9c26a4
client/tests/kvm/tests/unattended_install.py