diff options
author | Patrick Jenkins <pjenkins@apple.com> | 2006-08-21 20:45:57 +0000 |
---|---|---|
committer | Patrick Jenkins <pjenkins@apple.com> | 2006-08-21 20:45:57 +0000 |
commit | 0313775225942926ca561909c5c11be7a54b67a3 (patch) | |
tree | 017a9f664be210bd1dded525957ccbc3f75985a9 /utils/NewNightlyTest.pl | |
parent | f921a518912df706a8edf1f867f52e8afc6e2b55 (diff) | |
download | llvm-0313775225942926ca561909c5c11be7a54b67a3.tar.gz llvm-0313775225942926ca561909c5c11be7a54b67a3.tar.bz2 llvm-0313775225942926ca561909c5c11be7a54b67a3.tar.xz |
The new nightly tester should stop outputing a message stating the
testresults directory is not present unless the script is run as verbose.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/NewNightlyTest.pl')
-rwxr-xr-x | utils/NewNightlyTest.pl | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl index feae7abed4..db78195a9c 100755 --- a/utils/NewNightlyTest.pl +++ b/utils/NewNightlyTest.pl @@ -227,7 +227,9 @@ my $DejagnuSum = "$Prefix-Dejagnu-testrun.sum"; my $DejagnuTestsLog = "$Prefix-DejagnuTests-Log.txt"; if (! -d $WebDir) { mkdir $WebDir, 0777; - warn "$WebDir did not exist; creating it.\n"; + if($VERBOSE){ + warn "$WebDir did not exist; creating it.\n"; + } } if ($VERBOSE) { @@ -941,28 +943,28 @@ my $build_data; @BUILD_DATA = ReadFile "$BuildLog"; $build_data = join("\n", @BUILD_DATA); -my @DEJAGNU_LOG; -my @DEJAGNU_SUM; -my $dejagnutests_log; -my $dejagnutests_sum; -@DEJAGNU_LOG = ReadFile "$DejagnuLog"; -@DEJAGNU_SUM = ReadFile "$DejagnuSum"; -$dejagnutests_log = join("\n", @DEJAGNU_LOG); -$dejagnutests_sum = join("\n", @DEJAGNU_SUM); - -my @DEJAGNULOG_FULL; -my $dejagnulog_full; -@DEJAGNULOG_FULL = ReadFile "$DejagnuTestsLog"; -$dejagnulog_full = join("\n", @DEJAGNULOG_FULL); - -my $gcc_version_long=""; -if ($GCCPATH ne "") { - $gcc_version_long = `$GCCPATH/gcc --version`; -} else { - $gcc_version_long = `gcc --version`; +my (@DEJAGNU_LOG, @DEJAGNU_SUM, @DEJAGNULOG_FULL, @GCC_VERSION); +my ($dejagnutests_log ,$dejagnutests_sum, $dejagnulog_full) = ""; +my ($gcc_version, $gcc_version_long) = ""; + +if(!$BuildError){ + @DEJAGNU_LOG = ReadFile "$DejagnuLog"; + @DEJAGNU_SUM = ReadFile "$DejagnuSum"; + $dejagnutests_log = join("\n", @DEJAGNU_LOG); + $dejagnutests_sum = join("\n", @DEJAGNU_SUM); + + @DEJAGNULOG_FULL = ReadFile "$DejagnuTestsLog"; + $dejagnulog_full = join("\n", @DEJAGNULOG_FULL); + + $gcc_version_long=""; + if ($GCCPATH ne "") { + $gcc_version_long = `$GCCPATH/gcc --version`; + } else { + $gcc_version_long = `gcc --version`; + } + @GCC_VERSION = split '\n', $gcc_version_long; + $gcc_version = $GCC_VERSION[0]; } -@GCC_VERSION = split '\n', $gcc_version_long; -my $gcc_version = $GCC_VERSION[0]; ############################################################## # |