Commit 9d8fa722 authored by Simon Chabot's avatar Simon Chabot
Browse files

fix(tests): return code, after SIGTERM received, is -15, not 0.

related: #1

branch : 3.27
parent 70e98143ee1d
......@@ -96,8 +96,11 @@ class FirefoxHelper(object):
assert self._process.returncode is None, self._process.returncode
assert self._process.returncode == 0, "Error: firefox return code is %s, see %s" %\
(self._process.returncode, self.log_file)
# terminate() sends the signal SIGTERM to the process, which has
# value 15, therefore the returncode should be -15.
assert self._process.returncode == -15, "Error: firefox return code is %s, see %s" %\
(self._process.returncode, self.log_file)
self._process = None
def __del__(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment