tests: ap_hs20_fetch_osu: Print osu-providers.txt in debug log
This makes it easier to figure out what happened if the test case fails due to not finding all the needed OSU-PROVIDER information. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6c69991382
commit
27f527e0e2
1 changed files with 3 additions and 2 deletions
|
@ -2109,10 +2109,11 @@ def test_ap_hs20_fetch_osu(dev, apdev):
|
|||
|
||||
with open(dir + "/osu-providers.txt", "r") as f:
|
||||
prov = f.read()
|
||||
logger.debug("osu-providers.txt: " + prov)
|
||||
if "OSU-PROVIDER " + bssid not in prov:
|
||||
raise Exception("Missing OSU_PROVIDER")
|
||||
raise Exception("Missing OSU_PROVIDER(1)")
|
||||
if "OSU-PROVIDER " + bssid2 not in prov:
|
||||
raise Exception("Missing OSU_PROVIDER")
|
||||
raise Exception("Missing OSU_PROVIDER(2)")
|
||||
finally:
|
||||
files = [ f for f in os.listdir(dir) if f.startswith("osu-") ]
|
||||
for f in files:
|
||||
|
|
Loading…
Reference in a new issue