changeset 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 5c13e765ddbd
children 827cee5feb46
files test/test_dropbear.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)