NewNightlyTest.pl: Support -submit-aux with -no-submit (run that aux script,
authorDaniel Dunbar <daniel@zuster.org>
Fri, 26 Jun 2009 22:33:28 +0000 (22:33 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 26 Jun 2009 22:33:28 +0000 (22:33 +0000)
instead of skipping).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74341 91177308-0d34-0410-b5e6-96231b3b80d8

utils/NewNightlyTest.pl

index 40e8b39a0c0a7d71e86270fdf1bdecabca77c36a..c005bcbfb1e725580c16301aa71bf3c7f523b04e 100755 (executable)
@@ -504,7 +504,11 @@ sub SendData{
     WriteFile "$Prefix-sentdata.txt", $sentdata;
 
     if (!($SUBMITAUX eq "")) {
-      system "$SUBMITAUX \"$Prefix-sentdata.txt\"";
+        system "$SUBMITAUX \"$Prefix-sentdata.txt\"";
+    }
+
+    if (!$SUBMIT) { 
+        return "Skipped standard submit.\n";
     }
 
     # Create the content to send to the server.
@@ -1129,7 +1133,7 @@ my %hash_of_data = (
   'target_triple' => $targetTriple
 );
 
-if ($SUBMIT) {
+if ($SUBMIT || !($SUBMITAUX eq "")) {
   my $response = SendData $SUBMITSERVER,$SUBMITSCRIPT,\%hash_of_data;
   if( $VERBOSE) { print "============================\n$response"; }
 } else {