run-casper: Flush stdout before calling subprocess.

These markers were not getting correctly interleaved with the test
output in the CircleCI logs.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-02-04 15:28:36 -08:00 committed by Tim Abbott
parent 00de35b28a
commit 31aecc0abb
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ def run_tests(files: Iterable[str], external_host: str) -> None:
for test_file in test_files:
test_name = os.path.basename(test_file)
cmd = ["node_modules/.bin/casperjs"] + remote_debug + verbose + xunit_export + ["test", test_file]
print("\n\n===================== %s\nRunning %s\n\n" % (test_name, " ".join(map(shlex.quote, cmd))))
print("\n\n===================== %s\nRunning %s\n\n" % (test_name, " ".join(map(shlex.quote, cmd))), flush=True)
ret = subprocess.call(cmd)
if ret != 0:
break