@@ -74,7 +74,7 @@ set ::file ""; # If set, runs only the tests in this comma separated list
7474set ::curfile " " ; # Hold the filename of the current suite
7575set ::accurate 0; # If true runs fuzz tests with more iterations
7676set ::force_failure 0
77- set ::failures_json_file " " ; # If set, write failures JSON to this path
77+ set ::failures_output_file " " ; # If set, write failures JSON to this path
7878set ::timeout 1200; # 20 minutes without progresses will quit the test.
7979set ::last_progress [clock seconds]
8080set ::active_servers {} ; # Pids of active server instances.
@@ -613,7 +613,7 @@ proc print_test_summary {} {
613613}
614614
615615proc write_test_failures {} {
616- if {$::failures_json_file eq " " } {
616+ if {$::failures_output_file eq " " } {
617617 return
618618 }
619619
@@ -644,11 +644,11 @@ proc write_test_failures {} {
644644 lappend failures " \{\" test_name\" :\" $test_name \" ,\" test_file\" :\" $test_file \" ,\" status\" :\" $status \" ,\" error\" :\" $error_msg \"\} "
645645 }
646646
647- set outdir [file dirname $::failures_json_file ]
647+ set outdir [file dirname $::failures_output_file ]
648648 if {$outdir ne " ." } {
649649 file mkdir $outdir
650650 }
651- set fp [open $::failures_json_file w]
651+ set fp [open $::failures_output_file w]
652652 puts $fp " \[ [ join $failures " ," ] \] "
653653 close $fp
654654}
@@ -734,7 +734,7 @@ proc print_help_screen {} {
734734 " --clients <num> Number of test clients (default 16)."
735735 " --timeout <sec> Test timeout in seconds (default 20 min)."
736736 " --force-failure Force the execution of a test that always fails."
737- " --failures-json <path>"
737+ " --failures-output <path>"
738738 " Write test failures to the specified JSON file."
739739 " --config <k> <v> Extra config file argument."
740740 " --skipfile <file> Name of a file containing test names or regexp patterns (if"
@@ -862,8 +862,8 @@ for {set j 0} {$j < [llength $argv]} {incr j} {
862862 set ::accurate 1
863863 } elseif {$opt eq {--force-failure}} {
864864 set ::force_failure 1
865- } elseif {$opt eq {--failures-json }} {
866- set ::failures_json_file $arg
865+ } elseif {$opt eq {--failures-output }} {
866+ set ::failures_output_file $arg
867867 incr j
868868 } elseif {$opt eq {--single}} {
869869 foreach unit [expand_unit_spec $arg ] {
0 commit comments