3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

auto-t: Cleanup after a failure

This commit is contained in:
Tim Kourt 2018-01-16 13:50:42 -08:00 committed by Denis Kenzior
parent fb8063f37f
commit ca183343e2

View File

@ -31,7 +31,11 @@ class TestConnectAutoconnect(unittest.TestCase):
ordered_network.network_object.connect()
return
else:
ordered_network.network_object.connect()
try:
ordered_network.network_object.connect()
except:
del wd
raise
condition = 'obj.connected'
wd.wait_for_object_condition(ordered_network.network_object, condition)