JavaScript Test Library - report JS_Assert as a test failure, add failure list output file, bug 344131
git-svn-id: svn://10.0.0.236/trunk@203015 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7e61024794
commit
fd7a4e25d6
@ -318,7 +318,7 @@ sub execute_tests {
|
||||
# test was terminated due to timeout
|
||||
&report_failure ($test, "TIMED OUT ($opt_timeout seconds)\n");
|
||||
}
|
||||
elsif ($got_exit != $expected_exit) {
|
||||
elsif ($got_exit != $expected_exit || $exit_signal != 0) {
|
||||
# full testcase output dumped on mismatched exit codes,
|
||||
&report_failure ($test, "Expected exit code " .
|
||||
"$expected_exit, got $got_exit\n" .
|
||||
@ -393,6 +393,15 @@ sub write_results {
|
||||
"Tests completed on $completion_date.<br><br>\n");
|
||||
|
||||
if ($failures_reported > 0) {
|
||||
my $output_file_failures = $opt_output_file;
|
||||
$output_file_failures =~ s/(.*)\.html$/$1-failures.txt/;
|
||||
open (OUTPUTFAILURES, "> $output_file_failures") ||
|
||||
die ("Could not create failure output file $output_file_failures");
|
||||
print OUTPUTFAILURES (join ("\n", @failed_tests));
|
||||
close OUTPUTFAILURES;
|
||||
|
||||
&status ("Wrote failures to '$output_file_failures'.");
|
||||
|
||||
print OUTPUT
|
||||
("[ <a href='#fail_detail'>Failure Details</a> | " .
|
||||
"<a href='#retest_list'>Retest List</a> | " .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user