diff mbox

[6/9] KVM test: Raise error when met unknown type in kvm_vm.remote_login().

Message ID 20100426100410.26268.75724.stgit@localhost.localdomain (mailing list archive)
State New, archived
Headers show

Commit Message

Jason Wang April 26, 2010, 10:04 a.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 8f4753f..0cdf925 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -806,7 +806,9 @@  class VM:
         elif client == "nc":
             session = kvm_utils.netcat(address, port, username, password,
                                        prompt, linesep, timeout)
-
+        else:
+            raise error.TestError("Unknown shell_client type %s" % client)
+            
         if session:
             session.set_status_test_command(self.params.get("status_test_"
                                                             "command", ""))