Merge commit 'rajbot/newui' into newui
[bookreader.git] / BookReaderIA / sendtoswarm.pl
index d83c4c3..0485106 100755 (executable)
@@ -53,7 +53,7 @@ my $BUILD = "(cd BookReaderIA; make test)";
 # Note: The string {REV} will be replaced with the current
 #       commit number/hash.
 
-my $JOB_NAME = "BookReader Commit #{REV}";
+my $JOB_NAME = "BookReader www-testflip #{REV}";
 
 # The browsers you wish to run against. Options include:
 #  - "all" all available browsers.
@@ -175,17 +175,13 @@ if ( ! $rev ) {
                          "&urls[]=" . clean($SUITES{$suite});
        }
 
-       # XXX hacking in host header for now
-       #print "curl -d \"$query\" $SWARM\n" if ( $DEBUG );
-       #my $results = `curl -d "$query" $SWARM`;
-       my $cmd = 'curl  -H "Host: test.archive.org" -d "' . $query . '" ' . $SWARM;
-       print $cmd . '\n' if ( $DEBUG );
-       my $results = `$cmd`;
+       print "curl -d \"$query\" $SWARM\n" if ( $DEBUG );
+       my $results = `curl -d "$query" $SWARM`;
 
        print "Results: $results\n" if ( $DEBUG );
 
        if ( $results ) {
-               open( my $fh, '>', "$rev/results.txt" ) or die "$rev/results.txt : $!";
+               open( my $fh, '>', "results.txt" ) or die "$rev/results.txt : $!";
                print $fh "$SWARM$results";
                close( $fh );