mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:07:44 +00:00
headless-browser: Call fflush() between tests when running on TTY
This allows us to see the full test name without getting cut off by stdio buffering. :^)
This commit is contained in:
parent
ea54c58930
commit
6c81b90e5a
1 changed files with 3 additions and 1 deletions
|
@ -284,7 +284,9 @@ static ErrorOr<int> run_tests(HeadlessWebContentView& view, StringView test_root
|
||||||
|
|
||||||
out("{}/{}: {}", i + 1, tests.size(), LexicalPath::relative_path(test.input_path, test_root_path));
|
out("{}/{}: {}", i + 1, tests.size(), LexicalPath::relative_path(test.input_path, test_root_path));
|
||||||
|
|
||||||
if (!is_tty)
|
if (is_tty)
|
||||||
|
fflush(stdout);
|
||||||
|
else
|
||||||
outln("");
|
outln("");
|
||||||
|
|
||||||
test.result = TRY(run_test(view, test.input_path, test.expectation_path, test.mode));
|
test.result = TRY(run_test(view, test.input_path, test.expectation_path, test.mode));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue