aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-06 23:10:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-06 23:10:36 +0000
commit18975d44a6a14277b9d188308773f322bc34d674 (patch)
treefa151230f8421981df7b98f021e7a9d591230c47 /tests
parentb201db5ceca44ef5d77e04d2e5871782ed4dc81f (diff)
minor cleanup
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl19
1 files changed, 4 insertions, 15 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 4a8074944..4af8665f6 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -669,18 +669,9 @@ sub singletest {
# make some nice replace operations
$cmd =~ s/\n//g; # no newlines please
+ # substitute variables in the command line
subVariables \$cmd;
-# $cmd =~ s/%HOSTIP/$HOSTIP/g;
-# $cmd =~ s/%HOSTPORT/$HOSTPORT/g;
-# $cmd =~ s/%HTTPSPORT/$HTTPSPORT/g;
-# $cmd =~ s/%FTPPORT/$FTPPORT/g;
-# $cmd =~ s/%FTPSPORT/$FTPSPORT/g;
-# $cmd =~ s/%SRCDIR/$srcdir/g;
-# $cmd =~ s/%PWD/$pwd/g;
-
- #$cmd =~ s/%HOSTNAME/$HOSTNAME/g;
-
if($curl_debug) {
unlink($memdump);
}
@@ -709,10 +700,8 @@ sub singletest {
my $out="";
- if($cmdhash{'option'} eq "no-output") {
- #print "*** We don't slap on --output\n";
- }
- else {
+ if($cmdhash{'option'} !~ /no-output/) {
+ #We may slap on --output!
if (!@validstdout) {
$out=" --output $CURLOUT ";
}
@@ -746,7 +735,7 @@ sub singletest {
$DBGCURL=$CMDLINE;
}
- $CMDLINE .= "$cmdargs >$STDOUT 2>$STDERR";
+ $CMDLINE .= "$cmdargs >>$STDOUT 2>>$STDERR";
if($verbose) {
print "$CMDLINE\n";