mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
redirect stderr to /dev/null when testing for running test-servers
This commit is contained in:
parent
423a1cf486
commit
2df4866cfa
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user