aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-28 14:25:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-28 14:25:48 +0000
commit957c258c6d8abb584169fdadb1a1e0a20dd409c7 (patch)
treeb69619215bb74d8cb990d791c915b25462a7aa0c
parentabee109cd1aebc4074db7bcfebadb1e38177db8a (diff)
no, the kill servers messages need to be verbose, they're too frequent
-rw-r--r--tests/ftp.pm3
-rwxr-xr-xtests/runtests.pl6
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/ftp.pm b/tests/ftp.pm
index 6c5f9d353..078dc61f2 100644
--- a/tests/ftp.pm
+++ b/tests/ftp.pm
@@ -1,12 +1,13 @@
# make sure no leftovers are still running
sub ftpkillslaves {
+ my ($versbose) = @_;
for $ext (("", "ipv6")) {
for $id (("", "2")) {
for $base (('filt', 'data')) {
my $f = ".sock$base$id$ext.pid";
my $pid = checkserver($f);
if($pid > 0) {
- printf ("* kill pid for %-5s => %-5d\n", "ftp-$base$id$ext", $pid);
+ printf ("* kill pid for %-5s => %-5d\n", "ftp-$base$id$ext", $pid) if($verbose);
kill (9, $pid); # die!
}
unlink($f);
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 1a604d801..a74eacc87 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -545,7 +545,7 @@ sub runftpserver {
my $ip=$HOSTIP;
my $nameext;
- ftpkillslaves();
+ ftpkillslaves($verbose);
if($ipv6) {
# if IPv6, use a different setup
@@ -1572,10 +1572,10 @@ sub singletest {
# Stop all running test servers
sub stopservers {
for(keys %run) {
- printf ("* kill pid for %-5s => %-5d\n", $_, $run{$_});
+ printf ("* kill pid for %-5s => %-5d\n", $_, $run{$_}) if($verbose);
stopserver($run{$_}); # the pid file is in the hash table
}
- ftpkillslaves();
+ ftpkillslaves($verbose);
}
#######################################################################