tests: fix wait_for_window function
The `show` parameter wasn't handled (show=False was assumed...)
This commit is contained in:
parent
760786d999
commit
736e278865
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user