Make the Regression/Feature test support excise all ": PASS" lines that
indicate successful tests. We're really only interested in the bad news
in this output :)
llvm-svn: 13901
diff --git a/llvm/utils/NightlyTest.pl b/llvm/utils/NightlyTest.pl
index 26a380e..cf1d1b9 100755
--- a/llvm/utils/NightlyTest.pl
+++ b/llvm/utils/NightlyTest.pl
@@ -180,7 +180,7 @@
if (!$NOCHECKOUT) {
if (-d $BuildDir) {
if (!$NOREMOVE) {
- rmdir $BuildDir or die "Could not remove CVS checkout directory $BuildDir!";
+ system "rm -rf $BuildDir";
} else {
die "CVS checkout directory $BuildDir already exists!";
}
@@ -270,14 +270,19 @@
my $firstline;
$/ = "\n"; #Make sure we're going line at a time.
if (open SRCHFILE, $filename) {
+ # Skip stuff before ---TEST RESULTS
while ( <SRCHFILE> ) {
if ( m/^--- TEST RESULTS/ ) {
push(@lines, $_); last;
}
}
+ # Process test results
while ( <SRCHFILE> ) {
if ( length($_) > 1 ) {
- if ( ! m/^gmake:/ && ! m/^ qmtest.target:/ && !/^ local/ ) {
+ if ( ! m/: PASS[ ]*$/ &&
+ ! m/^ qmtest.target:/ &&
+ ! m/^ local/ &&
+ ! m/^gmake:/ ) {
push(@lines,$_);
}
}