diff options
author | Timofey <t.danshin@corp.mail.ru> | 2015-07-29 11:15:49 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:57:56 +0300 |
commit | be7dd9bc597bbbe7c0e7903770fde4fd9dc4a31e (patch) | |
tree | 55fdb8682f91010b8905b124a993ded7955c38e4 /tools | |
parent | bb93d92aab3e78bc36714258675a1bbcca8f973d (diff) |
Quickfix:
Fixed a check for test result which yielded false test failures.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run_desktop_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/run_desktop_tests.py b/tools/run_desktop_tests.py index e820087d50..7fe1adf7dd 100755 --- a/tools/run_desktop_tests.py +++ b/tools/run_desktop_tests.py @@ -149,7 +149,7 @@ class TestRunner: def log_exec_file(self, filename, result=None): - logstring = ("END" if result else "BEGIN") + logstring = "BEGIN" if result is None else "END" #can be 0 or None. If we omit the explicit check for None, we get wrong result resstring = (" | result: {returncode}".format(returncode=result) if result else "") with open(self.logfile, "a") as logf: logf.write("\n{logstring}: {filename}{resstring}\n".format(logstring=logstring, filename=filename, resstring=resstring)) |