tests: fix logic error in wait_for_window()
Revert change introduced in cbc5dbb9b1
This commit is contained in:
parent
43c09467b1
commit
71fc5217f7
@ -953,7 +953,7 @@ class SystemTestCase(QubesTestCase):
|
|||||||
wait_count = 0
|
wait_count = 0
|
||||||
while subprocess.call(['xdotool', 'search', '--name', title],
|
while subprocess.call(['xdotool', 'search', '--name', title],
|
||||||
stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) \
|
stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) \
|
||||||
== int(not show):
|
!= int(not show):
|
||||||
wait_count += 1
|
wait_count += 1
|
||||||
if wait_count > timeout*10:
|
if wait_count > timeout*10:
|
||||||
self.fail("Timeout while waiting for {} window to {}".format(
|
self.fail("Timeout while waiting for {} window to {}".format(
|
||||||
|
Loading…
Reference in New Issue
Block a user