tests: fix logic error in wait_for_window()

Revert change introduced in cbc5dbb9b1
This commit is contained in:
Marek Marczykowski-Górecki 2017-10-20 02:44:34 +02:00
parent 43c09467b1
commit 71fc5217f7
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -953,7 +953,7 @@ class SystemTestCase(QubesTestCase):
wait_count = 0
while subprocess.call(['xdotool', 'search', '--name', title],
stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) \
== int(not show):
!= int(not show):
wait_count += 1
if wait_count > timeout*10:
self.fail("Timeout while waiting for {} window to {}".format(