From 4d4dbcf37e9c6c0ca0f35b545cb20a55c058aa0e Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 28 Sep 2024 14:01:40 +0200 Subject: [PATCH] Add -C compact mode switch to run-test262 (#560) Turns on the reporting mode that is the default on the CI. --- run-test262.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run-test262.c b/run-test262.c index b9928a9..2fa04e2 100644 --- a/run-test262.c +++ b/run-test262.c @@ -1995,6 +1995,7 @@ void help(void) "-s run tests in strict mode, skip @nostrict tests\n" "-E only run tests from the error file\n" "-u update error file\n" + "-C compact output mode; enabled when stderr is not a tty\n" "-v verbose: output error messages\n" "-T duration display tests taking more than 'duration' ms\n" "-c file read configuration from 'file'\n" @@ -2066,6 +2067,8 @@ int main(int argc, char **argv) update_errors++; } else if (str_equal(arg, "-v")) { verbose++; + } else if (str_equal(arg, "-C")) { + compact++; } else if (str_equal(arg, "-c")) { load_config(get_opt_arg(arg, argv[optind++]), ignore); } else if (str_equal(arg, "-d")) {