From 736e2788658eb13075d3935af998f5e6a00e0e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 25 Nov 2015 01:08:57 +0100 Subject: [PATCH] tests: fix wait_for_window function The `show` parameter wasn't handled (show=False was assumed...) --- tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/__init__.py b/tests/__init__.py index 563ddf28..8a254cff 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -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(