[testrunner] remove the extra characters in progress indicator
After python3 migration, the new print usage started causing leftover character issues. This CL fixes the print usage. R=clemensh@chromium.org,neis@chromium.org CC=machenbach@chromium.org Bug: v8:8918 Change-Id: Ibee06677c3bae3e1141579693aa16a539309a566 Reviewed-on: https://chromium-review.googlesource.com/c/1495558 Commit-Queue: Tamer Tas <tmrts@chromium.org> Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Reviewed-by: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#59961}
This commit is contained in:
parent
9911fd13cc
commit
a6426cb888
@ -215,7 +215,7 @@ class CompactProgressIndicator(ProgressIndicator):
|
||||
}
|
||||
status = self._truncate(status, 78)
|
||||
self._last_status_length = len(status)
|
||||
print(status, end=' ')
|
||||
print(status, end='')
|
||||
sys.stdout.flush()
|
||||
|
||||
def _truncate(self, string, length):
|
||||
@ -241,7 +241,7 @@ class ColorProgressIndicator(CompactProgressIndicator):
|
||||
super(ColorProgressIndicator, self).__init__(templates)
|
||||
|
||||
def _clear_line(self, last_length):
|
||||
print("\033[1K\r", end=' ')
|
||||
print("\033[1K\r", end='')
|
||||
|
||||
|
||||
class MonochromeProgressIndicator(CompactProgressIndicator):
|
||||
@ -255,7 +255,7 @@ class MonochromeProgressIndicator(CompactProgressIndicator):
|
||||
super(MonochromeProgressIndicator, self).__init__(templates)
|
||||
|
||||
def _clear_line(self, last_length):
|
||||
print(("\r" + (" " * last_length) + "\r"), end=' ')
|
||||
print(("\r" + (" " * last_length) + "\r"), end='')
|
||||
|
||||
|
||||
class JsonTestProgressIndicator(ProgressIndicator):
|
||||
|
Loading…
Reference in New Issue
Block a user