comparison test/test_dropbear.py @ 1852:e0c1825c567d

Debug pytest password auth failing
author Matt Johnston <matt@ucc.asn.au>
date Tue, 19 Oct 2021 13:30:58 +0800
parents d757f48ae29f
children b550845e500b
comparison
equal deleted inserted replaced
1851:7f549ee3df48 1852:e0c1825c567d
33 # Check it's still running 33 # Check it's still running
34 assert p.poll() is None 34 assert p.poll() is None
35 # Ready 35 # Ready
36 yield p 36 yield p
37 p.terminate() 37 p.terminate()
38 print("Terminated dropbear. Flushing output:")
39 for l in p.stderr:
40 print(l.rstrip())
41 print("Done")
38 42
39 def dbclient(request, *args, **kwargs): 43 def dbclient(request, *args, **kwargs):
40 opt = request.config.option 44 opt = request.config.option
41 host = opt.remote or LOCALADDR 45 host = opt.remote or LOCALADDR
42 base_args = [opt.dbclient, "-y", host, "-p", opt.port] 46 base_args = [opt.dbclient, "-y", host, "-p", opt.port]