mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
auto-t: fix hotspot autoconnect test
The test was removing files in /var/lib/iwd which is no longer mounted read/write (nor are config files put there anymore).
This commit is contained in:
parent
2079b1ef4a
commit
87a29c9ca3
@ -47,7 +47,7 @@ class Test(unittest.TestCase):
|
|||||||
#
|
#
|
||||||
# Remove provisioning file, this should cause a disconnect.
|
# Remove provisioning file, this should cause a disconnect.
|
||||||
#
|
#
|
||||||
os.remove("/var/lib/iwd/ssidWPA2-1.psk")
|
os.remove("/tmp/iwd/ssidWPA2-1.psk")
|
||||||
|
|
||||||
condition = 'obj.state == DeviceState.disconnected'
|
condition = 'obj.state == DeviceState.disconnected'
|
||||||
wd.wait_for_object_condition(device, condition)
|
wd.wait_for_object_condition(device, condition)
|
||||||
@ -74,7 +74,7 @@ class Test(unittest.TestCase):
|
|||||||
testutil.test_iface_operstate()
|
testutil.test_iface_operstate()
|
||||||
testutil.test_ifaces_connected(device.name, hapd_hotspot.ifname)
|
testutil.test_ifaces_connected(device.name, hapd_hotspot.ifname)
|
||||||
|
|
||||||
os.remove('/var/lib/iwd/hotspot/autoconnect.conf')
|
os.remove('/tmp/iwd/hotspot/autoconnect.conf')
|
||||||
|
|
||||||
#
|
#
|
||||||
# make sure removal of hotspot conf file resulted in disconnect
|
# make sure removal of hotspot conf file resulted in disconnect
|
||||||
|
Loading…
Reference in New Issue
Block a user