changeset 1852:e0c1825c567d

Debug pytest password auth failing
author Matt Johnston <matt@ucc.asn.au>
date Tue, 19 Oct 2021 13:30:58 +0800
parents 7f549ee3df48
children 2be3115a8762
files .github/workflows/build.yml test/test_dropbear.py
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.github/workflows/build.yml	Tue Oct 19 06:02:47 2021 +0100
+++ b/.github/workflows/build.yml	Tue Oct 19 13:30:58 2021 +0800
@@ -117,6 +117,7 @@
         run: |
           mkdir -p ~/.ssh
           ~/inst/bin/dropbearkey -t ecdsa -f ~/.ssh/id_dropbear | grep ^ecdsa > ~/.ssh/authorized_keys
+          find ~/.ssh/authorized_keys -ls
 
         # upload config.log if something has failed
       - name: config.log
--- a/test/test_dropbear.py	Tue Oct 19 06:02:47 2021 +0100
+++ b/test/test_dropbear.py	Tue Oct 19 13:30:58 2021 +0800
@@ -35,6 +35,10 @@
 	# Ready
 	yield p
 	p.terminate()
+	print("Terminated dropbear. Flushing output:")
+	for l in p.stderr:
+		print(l.rstrip())
+	print("Done")
 
 def dbclient(request, *args, **kwargs):
 	opt = request.config.option