tests: handle KWrite editor in DispVM tests

This commit is contained in:
Marek Marczykowski-Górecki 2018-10-01 06:02:46 +02:00
parent 02f9661169
commit 7c91e82365
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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,