From bc35b9954995878b6fffc73c6b5888ebbe11a058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 9 Feb 2015 06:17:43 +0100 Subject: [PATCH] tests: update DispVM test Apparently 'l' and 'n' characters aren't passed correctly by xdotool (some keymap problem?). Do not use them in test text. --- tests/vm_qrexec_gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/vm_qrexec_gui.py b/tests/vm_qrexec_gui.py index cd57914d..2c7863ff 100644 --- a/tests/vm_qrexec_gui.py +++ b/tests/vm_qrexec_gui.py @@ -498,12 +498,12 @@ class DispVmTests(unittest.TestCase): time.sleep(0.5) subprocess.check_call(['xdotool', 'search', '--name', window_title, - 'windowactivate', 'type', 'test line 2\n']) + 'windowactivate', 'type', 'test test 2\n']) subprocess.check_call(['xdotool', 'search', '--name', window_title, 'key', 'ctrl+s', 'ctrl+q']) p.wait() p = self.testvm1.run("cat /home/user/test.txt", passio_popen=True) (test_txt_content, _) = p.communicate() - self.assertEqual(test_txt_content, "test line 2\ntest1\n") + self.assertEqual(test_txt_content, "test test 2\ntest1\n")