From: Jason Etheridge Date: Tue, 16 Jan 2018 18:10:26 +0000 (-0500) Subject: improved RSS feed X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ae2bb457220a5d5068ce65f7e83a5aa175ef86b0;p=working%2Frandom.git improved RSS feed Signed-off-by: Jason Etheridge --- diff --git a/qa/test_output_webifier.pl b/qa/test_output_webifier.pl index 66aeefb3d..fdfd21093 100755 --- a/qa/test_output_webifier.pl +++ b/qa/test_output_webifier.pl @@ -166,10 +166,12 @@ sub print_pass_or_fail { #print "subpage = <$subpage> error_count = $error_count\n"; if ($error_count && $error_count != $exception{$subpage} ) { print MAIN_PAGE ' - Failed'; + print PASS_FAIL "Failed $subpage"; if ($exception{$subpage} > 0) { - print MAIN_PAGE " - Expected $exception{$subpage} errors but encountered $error_count." + print MAIN_PAGE " - Expected $exception{$subpage} errors but encountered $error_count."; + print PASS_FAIL " - Expected $exception{$subpage} errors but encountered $error_count."; } - print PASS_FAIL "Failed\n"; + print PASS_FAIL "\n"; } else { if ($subpage_count) { print MAIN_PAGE ' - Passed'; @@ -221,16 +223,32 @@ sub update_rss { http://testing.evergreen-ils.org/~live + +^; + if (!$fail) { + print RSS_FILE q^ - Test ^ . ($fail ? 'Failure' : 'Success') . q^ + Testing Success http://testing.evergreen-ils.org/~live#^ . `date -Ins` . q^ ^ . `date -Iseconds` . q^ - ^ . ($fail ? 'One or more tests failed' : 'All tests succeeded') . q^ + All tests succeeded - - -^; + ^; + } + my $fidx = 0; + foreach my $f (split /\n/, $fail) { + print RSS_FILE q^ + + ^ . $f . q^ + + http://testing.evergreen-ils.org/~live#^ . `date -Ins` . '-' . ($fidx++) . q^ + ^ . `date -Iseconds` . q^ + ^ . $f . q^ + + ^; + } + print RSS_FILE ''; close RSS_FILE; #} `mv pass_fail.txt pass_fail.txt.prev`;