mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-12-22 19:09:23 +08:00
flush the file every line
This commit is contained in:
parent
cbec64fb3c
commit
84f8afd8a0
1 changed files with 1 additions and 0 deletions
1
utils.py
1
utils.py
|
@ -79,6 +79,7 @@ def run_cmd(cmd, cwd=None, keepalive=False, KEEPALIVE_TIMEOUT=30, RUN_CMD_TIMEOU
|
|||
super().append(mystring)
|
||||
if self.__file and type(mystring) is str:
|
||||
self.__file.write(mystring)
|
||||
self.__file.flush()
|
||||
def __enter__(self):
|
||||
return self
|
||||
def __exit__(self, type, value, traceback):
|
||||
|
|
Loading…
Reference in a new issue