提交 f2004c53 编写于 作者: M Marian Krcmarik 提交者: Lucas Meneghel Rodrigues

tests/rv_fullscreen.py: Suppress some console output.

Signed-off-by: NMarian Krcmarik <mkrcmari@redhat.com>
上级 1abead7f
......@@ -40,7 +40,8 @@ def run_rv_fullscreen(test, params, env):
client_session.cmd("export DISPLAY=:0.0")
try:
client_res_raw = client_session.cmd("xrandr | grep '*'")
client_session.cmd("xrandr | grep '*' >/tmp/res")
client_res_raw = client_session.cmd("cat /tmp/res|awk '{print $1}'")
client_res = client_res_raw.split()[0]
except ShellCmdError:
raise error.TestFail("Could not get guest resolution, xrandr output:" +
......@@ -53,7 +54,8 @@ def run_rv_fullscreen(test, params, env):
guest_session.cmd("export DISPLAY=:0.0")
try:
guest_res_raw = guest_session.cmd("xrandr | grep '*'")
guest_session.cmd("xrandr | grep '*' >/tmp/res")
guest_res_raw = guest_session.cmd("cat /tmp/res|awk '{print $1}'")
guest_res = guest_res_raw.split()[0]
except ShellCmdError:
raise error.TestFail("Could not get guest resolution, xrandr output:" +
......@@ -71,13 +73,13 @@ def run_rv_fullscreen(test, params, env):
if(client_res == guest_res):
logging.info("PASS: Guest resolution is the same as the client")
else:
raise error.TestFail("Guest resolution is the same as the client")
raise error.TestFail("Guest resolution differs from the client")
# Negative Test, verify the resolutions are not equal
elif full_screen == "no":
if(client_res != guest_res):
logging.info("PASS: Guest resolution differs from the client")
else:
raise error.TestFail("Guest resolution differs from the client")
raise error.TestFail("Guest resolution is the same as the client")
else:
raise error.TestFail("The test setup is incorrect.")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册