Add -C compact mode switch to run-test262 (#560)

Turns on the reporting mode that is the default on the CI.
This commit is contained in:
Ben Noordhuis 2024-09-28 14:01:40 +02:00 committed by GitHub
parent d0df61d04a
commit 4d4dbcf37e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")) {