Skip to content

Commit 5ae0439

Browse files
committed
scripts/test_translator.py: restore '[ OK ]' prints
1 parent 6a34911 commit 5ae0439

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/test_translator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,10 @@ def run(self) -> List[TestOutcome]:
535535
sys.stdout.write('\n')
536536
sys.stdout.write(stdout)
537537
else:
538-
sys.stdout.write("\n".join(line for line in stdout.split("\n") if "... ok" in line or "... FAILED" in line))
538+
for line in stdout.split("\n"):
539+
if "... ok" in line:
540+
self.print_status(Colors.OKGREEN, "OK", "{}".format(line))
541+
sys.stdout.write('\n')
539542

540543
# Don't distinguish between expected and unexpected failures.
541544
# `#[should_panic]` is used for that instead of `// xfail` now.

0 commit comments

Comments
 (0)