headless-browser: Replace the log-slowest-tests flag with a verbose flag

Instead of adding a separate flag for each thing we want to log, let's
just have a verbosity flag. We can add verbosity levels later if needed.
This commit is contained in:
Timothy Flynn 2024-11-11 07:54:51 -05:00 committed by Andreas Kling
commit d2306efaea
Notes: github-actions[bot] 2024-11-11 15:55:51 +00:00
3 changed files with 3 additions and 3 deletions

View file

@ -504,7 +504,7 @@ ErrorOr<void> run_tests(Core::AnonymousBuffer const& theme, Gfx::IntSize window_
for (auto const& non_passing_test : non_passing_tests)
outln("{}: {}", test_result_to_string(non_passing_test.result), non_passing_test.test.input_path);
if (app.log_slowest_tests) {
if (app.verbose) {
auto tests_to_print = min(10uz, tests.size());
outln("\nSlowest {} tests:", tests_to_print);