diff test/test_dropbear.py @ 1841:d757f48ae29f

Add a default 10 second timeout for tests
author Matt Johnston <matt@ucc.asn.au>
date Mon, 18 Oct 2021 23:20:32 +0800
parents 06c7ddbb9dd6
children e0c1825c567d
line wrap: on
line diff
--- a/test/test_dropbear.py	Mon Oct 18 23:20:08 2021 +0800
+++ b/test/test_dropbear.py	Mon Oct 18 23:20:32 2021 +0800
@@ -49,6 +49,7 @@
 	if bg:
 		return subprocess.Popen(full_args, **kwargs)
 	else:
+		kwargs.setdefault("timeout", 10)
 		# wait for response
 		return subprocess.run(full_args, **kwargs)