ソースを参照

tests: handle KWrite editor in DispVM tests

Marek Marczykowski-Górecki 5 年 前
コミット
7c91e82365
1 ファイル変更1 行追加1 行削除
  1. 1 1
      qubes/tests/integ/dispvm.py

+ 1 - 1
qubes/tests/integ/dispvm.py

@@ -191,7 +191,7 @@ class TC_20_DispVMMixin(object):
         window_title = window_title.decode().strip().\
             replace('(', '\(').replace(')', '\)')
         time.sleep(1)
-        if "gedit" in window_title:
+        if "gedit" in window_title or 'KWrite' in window_title:
             subprocess.check_call(['xdotool', 'windowactivate', '--sync', winid,
                                    'type', 'Test test 2'])
             subprocess.check_call(['xdotool', 'key', '--window', winid,