3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 13:59:24 +01:00

auto-t: remove /var/lib/iwd references in testKnownNetworks

This commit is contained in:
James Prestwood 2020-11-03 11:06:40 -08:00 committed by Denis Kenzior
parent 16698d0c9a
commit 957a8aac25

View File

@ -67,7 +67,7 @@ class Test(unittest.TestCase):
hs20_freqs = None hs20_freqs = None
hs20_uuid = None hs20_uuid = None
config = ConfigParser() config = ConfigParser()
config.read('/var/lib/iwd/.known_network.freq') config.read('/tmp/iwd/.known_network.freq')
for s in config.sections(): for s in config.sections():
if os.path.basename(config[s]['name']) == 'ssidCCMP.psk': if os.path.basename(config[s]['name']) == 'ssidCCMP.psk':
psk_freqs = config[s]['list'] psk_freqs = config[s]['list']
@ -116,7 +116,7 @@ class Test(unittest.TestCase):
psk_uuid2 = None psk_uuid2 = None
hs20_freqs = None hs20_freqs = None
config = ConfigParser() config = ConfigParser()
config.read('/var/lib/iwd/.known_network.freq') config.read('/tmp/iwd/.known_network.freq')
for s in config.sections(): for s in config.sections():
self.assertNotEqual(os.path.basename(config[s]['name']), self.assertNotEqual(os.path.basename(config[s]['name']),
'example.conf') 'example.conf')