1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 11:10:20 +01:00

logging screen output to file (#479)

Co-authored-by: Gal Leibovich <gal.leibovich@intel.com>
This commit is contained in:
Guy Jacob
2021-05-06 18:02:27 +03:00
committed by GitHub
parent 9106b69227
commit a1a2e67fbd
8 changed files with 63 additions and 45 deletions

View File

@@ -458,7 +458,7 @@ class Timer(object):
self.start = time.time()
def __exit__(self, type, value, traceback):
print(self.prefix, time.time() - self.start)
screen.print(self.prefix, time.time() - self.start)
class ReaderWriterLock(object):
@@ -516,7 +516,7 @@ class ProgressBar(object):
sys.stdout.flush()
def close(self):
print("")
screen.print("")
def start_shell_command_and_wait(command):