tests: fix wait_for_window function

The `show` parameter wasn't handled (show=False was assumed...)
This commit is contained in:
Marek Marczykowski-Górecki 2015-11-25 01:08:57 +01:00
parent 760786d999
commit 736e278865
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -353,7 +353,7 @@ class SystemTestsMixin(object):
wait_count = 0
while subprocess.call(['xdotool', 'search', '--name', title],
stdout=open(os.path.devnull, 'w'),
stderr=subprocess.STDOUT) == 0:
stderr=subprocess.STDOUT) == int(show):
wait_count += 1
if wait_count > timeout*10:
self.fail("Timeout while waiting for {} window to {}".format(