diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-07-16 15:16:52 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-07-16 15:47:10 +0200 |
commit | bd21f016fa19967b2ec4a0ab469cb8f44628b2ac (patch) | |
tree | a49c00f3adba1047699d987603d85967e390657b /tests | |
parent | b880d4c8812f9ad93f5803ac369a6660fb853ea8 (diff) | |
download | gnome-settings-daemon-bd21f016fa19967b2ec4a0ab469cb8f44628b2ac.tar.gz |
tests: Fix error during output checker exception
Traceback (most recent call last):
File "/builds/GNOME/gnome-settings-daemon/plugins/power/test.py", line 760, in test_lid_close_inhibition
self.check_no_lid_uninhibited(gsdpowerconstants.LID_CLOSE_SAFETY_TIMEOUT - 1)
File "/builds/GNOME/gnome-settings-daemon/plugins/power/test.py", line 327, in check_no_lid_uninhibited
self.plugin_log.check_no_line(b'uninhibiting lid close', wait=timeout)
File "/builds/GNOME/gnome-settings-daemon/tests/output_checker.py", line 143, in check_no_line
return self.check_no_line_re(needle_re, wait=wait, failmsg=failmsg)
File "/builds/GNOME/gnome-settings-daemon/tests/output_checker.py", line 133, in check_no_line_re
raise AssertionError('Found needle %s but shouldn\'t have been there (timeout: %0.2f)' % (str(needle_re), timeout))
NameError: name 'timeout' is not defined
Diffstat (limited to 'tests')
-rw-r--r-- | tests/output_checker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/output_checker.py b/tests/output_checker.py index 3f5a1e1c..35c19f78 100644 --- a/tests/output_checker.py +++ b/tests/output_checker.py @@ -130,7 +130,7 @@ class OutputChecker(object): if failmsg: raise AssertionError(failmsg) else: - raise AssertionError('Found needle %s but shouldn\'t have been there (timeout: %0.2f)' % (str(needle_re), timeout)) + raise AssertionError('Found needle %s but shouldn\'t have been there (timeout: %0.2f)' % (str(needle_re), wait)) return ret |