提交 905356bc 编写于 作者: S swapnakrishnan2k

qemu.spice: Removing aexpect exceptions

On RHEL6, using aexpect directly causes 
ShellCmdError & ShellCmdTimeout exceptions 
to not work anymore. 

Reviewed By: Swapna Krishnan <skrishna@redhat.com>
上级 7cf589b4
......@@ -64,7 +64,7 @@ def run(test, params, env):
# pkcs11_listcerts not installed until Smart Card Support is installed
try:
output = guest_session.cmd_output("pkcs11_listcerts")
except aexpect.ShellTimeoutError:
except:
# Expected to get a shell timeout error,
# listing certs prompts for PIN
try:
......@@ -90,7 +90,7 @@ def run(test, params, env):
# Smart Card Support is installed
try:
certsinfo_output = guest_session.cmd("pklogin_finder debug")
except aexpect.ShellTimeoutError:
except:
# Expected to get a shell timeout error,
# listing certs prompts for PIN
try:
......@@ -159,7 +159,7 @@ def run(test, params, env):
cmd += "-D -n '" + cert + "' -d " + cert_db
try:
output = client_session.cmd(cmd)
except aexpect.ShellCmdError:
except:
logging.warning(
"Deleting of %s certificate from the client failed",
cert)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册