From: Jouni Malinen Date: Sat, 17 Jan 2015 14:03:43 +0000 (+0200) Subject: tests: ap_hs20_fetch_osu: Print osu-providers.txt in debug log X-Git-Tag: hostap_2_4~383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27f527e0e23a67ec5cf70c0a01cc700c141080cd;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 7ff0ce476..1a4e438b6 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -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: