Skip to contentSkip to conversation

auto-t: fix hotspot autoconnect test

PATCH Applied James Prestwood 2 participants 2 messages Oct 29, 2020 – Oct 30, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

---
 autotests/testHotspot/autoconnect_test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
autotests/testHotspot/autoconnect_test.py +2 -2
index 252a4b92..b8caa7fb 100644
@@ -47,7 +47,7 @@ class Test(unittest.TestCase):
         #
         # 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'
         wd.wait_for_object_condition(device, condition)
@@ -74,7 +74,7 @@ class Test(unittest.TestCase):
         testutil.test_iface_operstate()
         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
Signature · 1 line
2.26.2
#1 lore raw

Hi James,

Quoted 6 lines · James Prestwood

The test was removing files in /var/lib/iwd which is no longer mounted read/write (nor are config files put there anymore).

---
  autotests/testHotspot/autoconnect_test.py | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Regards,
-Denis