summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2022-02-01 22:18:23 +0800
committerMatt Johnston <matt@ucc.asn.au>2022-02-01 22:18:23 +0800
commita4698be37444c0193e769760debfc0156e87f6fa (patch)
treef24d5c995560c53b20263798d07bfc155f625187 /test
parent2f501cd3714046888e7dfcf614968239288532c3 (diff)
downloaddropbear-a4698be37444c0193e769760debfc0156e87f6fa.tar.gz
Make re-exec work with "dropbearmulti dropbear"
The re-exec needs to know to use the dropbearmulti binary instead. Add a test for this case.
Diffstat (limited to 'test')
-rw-r--r--test/test_dropbear.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_dropbear.py b/test/test_dropbear.py
index 0b6e1a0..5e7fcc6 100644
--- a/test/test_dropbear.py
+++ b/test/test_dropbear.py
@@ -19,7 +19,8 @@ def dropbear(request):
yield None
return
- args = [opt.dropbear,
+ # split so that "dropbearmulti dropbear" works
+ args = opt.dropbear.split() + [
"-p", LOCALADDR, # bind locally only
"-r", opt.hostkey,
"-p", opt.port,
@@ -43,9 +44,10 @@ def dropbear(request):
def dbclient(request, *args, **kwargs):
opt = request.config.option
host = opt.remote or LOCALADDR
- base_args = [opt.dbclient, "-y", host, "-p", opt.port]
+ # split so that "dropbearmulti dbclient" works
+ base_args = opt.dbclient.split() + ["-y", host, "-p", opt.port]
if opt.user:
- full_args.extend(['-l', opt.user])
+ base_args.extend(['-l', opt.user])
full_args = base_args + list(args)
bg = kwargs.get("background")
if "background" in kwargs: