Skip to content

Commit

Permalink
Merge 29b1680 into cf35bd7
Browse files Browse the repository at this point in the history
  • Loading branch information
foopoiuyt committed Jun 19, 2019
2 parents cf35bd7 + 29b1680 commit 8b1420c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tests/dictserver.py
Expand Up @@ -33,7 +33,7 @@ def dictserver(options):
with open(options.pidfile, "w") as f:
f.write("{0}".format(pid))

local_bind = (HOST, options.port)
local_bind = (options.host, options.port)
log.info("[DICT] Listening on %s", local_bind)

# Need to set the allow_reuse on the class, not on the instance.
Expand Down Expand Up @@ -83,6 +83,8 @@ def get_options():

parser.add_argument("--port", action="store", default=9016,
type=int, help="port to listen on")
parser.add_argument("--host", action="store", default=HOST,
help="host to listen on")
parser.add_argument("--verbose", action="store", type=int, default=0,
help="verbose output")
parser.add_argument("--pidfile", action="store",
Expand Down
6 changes: 4 additions & 2 deletions tests/runtests.pl
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion tests/smbserver.py
Expand Up @@ -86,7 +86,7 @@ def smbserver(options):

test_data_dir = os.path.join(options.srcdir, "data")

smb_server = TestSmbServer(("127.0.0.1", options.port),
smb_server = TestSmbServer((options.host, options.port),
config_parser=smb_config,
test_data_directory=test_data_dir)
log.info("[SMB] setting up SMB server on port %s", options.port)
Expand Down Expand Up @@ -312,6 +312,8 @@ def get_options():

parser.add_argument("--port", action="store", default=9017,
type=int, help="port to listen on")
parser.add_argument("--host", action="store", default="127.0.0.1",
help="host to listen on")
parser.add_argument("--verbose", action="store", type=int, default=0,
help="verbose output")
parser.add_argument("--pidfile", action="store",
Expand Down

0 comments on commit 8b1420c

Please sign in to comment.