From: Lei Yang <yanglei.f...@gmail.com> if we don't pass the shell_prompt to the class "ShellSession", it will use the default one from __init__ of "ShellSession", if it doesn't match it, it will cause failure
Signed-off-by: Lei Yang <yanglei.f...@gmail.com> --- client/virt/kvm_vm.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py index c7b93dc..d2b8e72 100644 --- a/client/virt/kvm_vm.py +++ b/client/virt/kvm_vm.py @@ -1168,7 +1168,8 @@ class VM(virt_vm.BaseVM): "nc -U %s" % self.get_serial_console_filename(), auto_close=False, output_func=virt_utils.log_line, - output_params=("serial-%s.log" % name,)) + output_params=("serial-%s.log" % name,), + prompt=self.params.get("shell_prompt", "[\#\$]")) finally: fcntl.lockf(lockfile, fcntl.LOCK_UN) -- 1.7.5.4 _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest