From 961ae3588f4e85631c1b508c716aaacbda3f4322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 30 Mar 2015 21:32:13 +0200 Subject: [PATCH] tests: force gnome-terminal title, so we can find the window Debian do not use hostname in gnome-terminal window title by default, so the test failed there, even when DispVM was started correctly. Additionally we can't rely on gnome-terminal --title, as it isn't working on Debian 8... --- tests/vm_qrexec_gui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/vm_qrexec_gui.py b/tests/vm_qrexec_gui.py index e4a72dc6..2bfe1a41 100644 --- a/tests/vm_qrexec_gui.py +++ b/tests/vm_qrexec_gui.py @@ -452,9 +452,11 @@ class TC_20_DispVMMixin(qubes.tests.SystemTestsMixin): self.assertNotEqual(dispvm.qid, 0, "DispVM not found in qubes.xml") self.assertTrue(dispvm.is_running()) - p.stdin.write("gnome-terminal\n") - wait_count = 0 window_title = 'user@%s' % (dispvm.template.name + "-dvm") + p.stdin.write("gnome-terminal -e " + "\"sh -s -c 'echo \\\"\033]0;{}\007\\\"'\"\n". + format(window_title)) + wait_count = 0 while subprocess.call(['xdotool', 'search', '--name', window_title], stdout=open(os.path.devnull, 'w'), stderr=subprocess.STDOUT) > 0: