From ae2bb457220a5d5068ce65f7e83a5aa175ef86b0 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 16 Jan 2018 13:10:26 -0500 Subject: [PATCH] improved RSS feed Signed-off-by: Jason Etheridge --- qa/test_output_webifier.pl | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) 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`; -- 2.11.0