Commit a6426cb8 authored by Tamer Tas's avatar Tamer Tas Committed by Commit Bot

[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: 's avatarClemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59961}
parent 9911fd13
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment