Hotfix for python

This commit is contained in:
Timofey 2015-07-29 13:03:08 +03:00 committed by Alex Zolotarev
parent c05797f427
commit 0dbeb5eb16

View file

@ -150,7 +150,7 @@ class TestRunner:
def log_exec_file(self, filename, result=None):
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 "")
resstring = (" | result: {returncode}".format(returncode=result) if result is not None else "")
with open(self.logfile, "a") as logf:
logf.write("\n{logstring}: {filename}{resstring}\n".format(logstring=logstring, filename=filename, resstring=resstring))