mirror of
https://github.com/curl/curl.git
synced 2026-08-26 16:23:32 +03:00
tests: support non-localhost HOSTIP for dict/smb servers
smbserver.py/dictserver.py were explicitly using localhost/127.0.0.1 for binding the server which when we were running the tests with a separate HOSTIP and CLIENTIP had failures verifying the server from the device we were testing. This changes them to take the address from runtests.py and default to localhost/127.0.0.1 if none is given. Closes #4048
This commit is contained in:
parent
cf35bd79bd
commit
2aff76c571
3 changed files with 10 additions and 4 deletions
|
|
@ -2203,7 +2203,8 @@ sub rundictserver {
|
|||
$flags .= "--verbose 1 " if($debugprotocol);
|
||||
$flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
||||
$flags .= "--id $idnum " if($idnum > 1);
|
||||
$flags .= "--port $port --srcdir \"$srcdir\"";
|
||||
$flags .= "--port $port --srcdir \"$srcdir\" ";
|
||||
$flags .= "--host $HOSTIP";
|
||||
|
||||
my $cmd = "$srcdir/dictserver.py $flags";
|
||||
my ($dictpid, $pid2) = startnew($cmd, $pidfile, 15, 0);
|
||||
|
|
@ -2279,7 +2280,8 @@ sub runsmbserver {
|
|||
$flags .= "--verbose 1 " if($debugprotocol);
|
||||
$flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
||||
$flags .= "--id $idnum " if($idnum > 1);
|
||||
$flags .= "--port $port --srcdir \"$srcdir\"";
|
||||
$flags .= "--port $port --srcdir \"$srcdir\" ";
|
||||
$flags .= "--host $HOSTIP";
|
||||
|
||||
my $cmd = "$srcdir/smbserver.py $flags";
|
||||
my ($smbpid, $pid2) = startnew($cmd, $pidfile, 15, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue