aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-12 09:41:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-12 09:41:56 +0000
commit2df4866cfa24920675520a5ccf72340e8e93b757 (patch)
treed68ce2f50f3b6b207a4fe6148fd3923d76b40b53
parent423a1cf4868bb04e06907020393d4b30b2a46c6b (diff)
redirect stderr to /dev/null when testing for running test-servers
-rwxr-xr-xtests/runtests.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index c7c95a222..e9e5049aa 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -156,7 +156,7 @@ sub runhttpserver {
$pid = checkserver ($HTTPPIDFILE);
# verify if our/any server is running on this port
- my $data=`$CURL --silent -i $HOSTIP:$HOSTPORT/verifiedserver`;
+ my $data=`$CURL --silent -i $HOSTIP:$HOSTPORT/verifiedserver 2>/dev/null`;
if ( $data =~ /WE ROOLZ(: |)(\d*)/ ) {
if($2) {
@@ -242,7 +242,7 @@ sub runftpserver {
my $flag=$debugprotocol?"-v ":"";
# verify that our server is NOT running on this port:
- my $data=`$CURL --silent -i ftp://$HOSTIP:$FTPPORT/verifiedserver`;
+ my $data=`$CURL --silent -i ftp://$HOSTIP:$FTPPORT/verifiedserver 2>/dev/null`;
if ( $data =~ /WE ROOLZ/ ) {
print "A previous FTP server session is already running and we ",
@@ -262,7 +262,7 @@ sub runftpserver {
}
# verify that our server is one one running on this port:
- my $data=`$CURL --silent -i ftp://$HOSTIP:$FTPPORT/verifiedserver`;
+ my $data=`$CURL --silent -i ftp://$HOSTIP:$FTPPORT/verifiedserver 2>/dev/null`;
if ( $data !~ /WE ROOLZ/ ) {
print "Another FTP server is running on port $FTPPORT\n",