virttest.aexpect : try to fix the error can not get the prompt

when using session.cmd, some times can not get the prompt, if
kernel print message when command execute.this patch try to fix
this issue