mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
auto-t: Cleanup after a failure
This commit is contained in:
parent
fb8063f37f
commit
ca183343e2
@ -31,7 +31,11 @@ class TestConnectAutoconnect(unittest.TestCase):
|
|||||||
ordered_network.network_object.connect()
|
ordered_network.network_object.connect()
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
ordered_network.network_object.connect()
|
ordered_network.network_object.connect()
|
||||||
|
except:
|
||||||
|
del wd
|
||||||
|
raise
|
||||||
|
|
||||||
condition = 'obj.connected'
|
condition = 'obj.connected'
|
||||||
wd.wait_for_object_condition(ordered_network.network_object, condition)
|
wd.wait_for_object_condition(ordered_network.network_object, condition)
|
||||||
|
Loading…
Reference in New Issue
Block a user