summaryrefslogtreecommitdiffstats
path: root/suites
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-07 02:15:48 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-08 13:06:58 +0200
commita88b0c74249db42159f2dbc5e299cad5288c0f96 (patch)
treec38bb4f47b15f3be6cf421fe76e1485b86c8b49c /suites
parent1ffc3fed6b0fdb8d72f77957a701e6a605bf7b95 (diff)
propagate Timeout class to test scope, use in debug suite
Diffstat (limited to 'suites')
-rwxr-xr-xsuites/debug/interactive.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/suites/debug/interactive.py b/suites/debug/interactive.py
index ff5da30..603e395 100755
--- a/suites/debug/interactive.py
+++ b/suites/debug/interactive.py
@@ -24,7 +24,10 @@ while True:
if 'quit'.startswith(cmd):
break
elif 'wait-registered'.startswith(cmd):
- wait(nitb.subscriber_attached, *modems)
+ try:
+ wait(nitb.subscriber_attached, *modems)
+ except Timeout:
+ print('Timeout while waiting for registration.')
elif 'get-registered'.startswith(cmd):
print(nitb.imsi_list_attached())
print('RESULT: %s' %