From 6797dd498b5b89665e4c1268063494eccf842bc2 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 24 Sep 2004 05:05:53 +0000 Subject: [PATCH] Add a pretty PASSED! or FAILED! to the final summary line. --- maintenance/parserTests.php | 8 +++++++- maintenance/parserTests.txt | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/maintenance/parserTests.php b/maintenance/parserTests.php index 8130183145..5670d538af 100644 --- a/maintenance/parserTests.php +++ b/maintenance/parserTests.php @@ -152,7 +152,13 @@ class ParserTest { } if( $total > 0 ) { $ratio = IntVal( 100.0 * $success / $total ); - print "\nPassed $success of $total tests ($ratio%)\n"; + print $this->termColor( 1 ) . "\nPassed $success of $total tests ($ratio%) "; + if( $success == $total ) { + print $this->termColor( 32 ) . "PASSED!"; + } else { + print $this->termColor( 31 ) . "FAILED!"; + } + print $this->termReset() . "\n"; return ($success == $total); } else { die( "No tests found.\n" ); diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 17370eef16..7535ac4b36 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -658,6 +658,9 @@ Plain link to URL

!! end +# I'm fairly sure the expected result here is wrong. +# We want these to be URL links, not pseudo-pages with URLs for titles.... +# However the current output is also pretty screwy. !! test Piped link to URL !! input -- 2.20.1