From 4363b3e5ef28ccafa4fe312feeb58c0520f7f770 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Wed, 14 Feb 2018 15:27:10 -0800 Subject: [PATCH] check webpage --- tests/automated/helpers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/automated/helpers.py b/tests/automated/helpers.py index 9d6ac623899cda..433fcd3a566200 100644 --- a/tests/automated/helpers.py +++ b/tests/automated/helpers.py @@ -49,7 +49,12 @@ def _connect_wifi(dongle_id, pw): assert cnt < MAX_TRIES if "-pair" in wifi_scan[0]: os.system("nmcli d wifi connect %s-pair" % (ssid)) + # fetch webpage print "connecting to insecure network to secure" + r = requests.get("http://192.168.0.10/") + assert r.status_code==200 + + print "securing" try: r = requests.get("http://192.168.0.10/secure", timeout=0.01) except requests.exceptions.Timeout: