From 893f39c596d9cea06d94de5ea0d80de4d6035d07 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Fri, 23 Jul 2021 20:05:47 +0200 Subject: tests/runtests.pl: cleanup copy&paste mistakes and unused code Reviewed-by: Jay Satiro Part of #7481 --- tests/runtests.pl | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'tests/runtests.pl') diff --git a/tests/runtests.pl b/tests/runtests.pl index 9afc97df0..30ae0b349 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -1691,7 +1691,6 @@ sub runhttpsserver { } my $pid2; - my $pid3; my $httpspid; my $port = 24512; # start attempt for (1 .. 10) { @@ -1862,7 +1861,6 @@ sub runpingpongserver { $doesntrun{$pidfile} = 1; return (0,0); } - $pid2 = $pid3; logmsg "RUN: $srvrname server is PID $ftppid port $port\n" if($verbose); @@ -1957,10 +1955,9 @@ sub runftpsserver { $flags .= "--stunnel \"$stunnel\" --srcdir \"$srcdir\" "; $flags .= "--connect $FTPPORT"; - my $port = 26713; - my $pid2; - my $pid3; my $ftpspid; + my $pid2; + my $port = 26713; for (1 .. 10) { $port += int(rand(700)); my $options = "$flags --accept $port"; @@ -5158,7 +5155,7 @@ sub startservers { } logmsg sprintf ("* pid SMB => %d %d\n", $pid, $pid2) if($verbose); - $run{'dict'}="$pid $pid2"; + $run{'smb'}="$pid $pid2"; } } elsif($what eq "telnet") { @@ -5170,7 +5167,7 @@ sub startservers { } logmsg sprintf ("* pid neg TELNET => %d %d\n", $pid, $pid2) if($verbose); - $run{'dict'}="$pid $pid2"; + $run{'telnet'}="$pid $pid2"; } } elsif($what eq "none") { -- cgit v1.2.1