summaryrefslogtreecommitdiff
path: root/test-cli/test/tests/qwifi.py
diff options
context:
space:
mode:
authorHector Fernandez <hector@iatec.biz>2020-04-13 09:49:51 +0200
committerHector Fernandez <hector@iatec.biz>2020-04-13 10:06:37 +0200
commitf86887baef80509460da0bff8f48b2900a627282 (patch)
tree70276382e2bba14673f763e2dbcace998a8fe685 /test-cli/test/tests/qwifi.py
parent0c610ebbef5928f17ec8c14d872b4d4298d3c4fb (diff)
downloadboard-f86887baef80509460da0bff8f48b2900a627282.zip
board-f86887baef80509460da0bff8f48b2900a627282.tar.gz
board-f86887baef80509460da0bff8f48b2900a627282.tar.bz2
Added new DB functions. Added Qrreader.py file.
Diffstat (limited to 'test-cli/test/tests/qwifi.py')
-rw-r--r--test-cli/test/tests/qwifi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test-cli/test/tests/qwifi.py b/test-cli/test/tests/qwifi.py
index 8daf069..b0b8d6b 100644
--- a/test-cli/test/tests/qwifi.py
+++ b/test-cli/test/tests/qwifi.py
@@ -44,6 +44,7 @@ class Qwifi(unittest.TestCase):
# check if the board has ip in the wlan0 interface
p = sh.ifconfig("wlan0")
if p.exit_code == 0:
+ # check if wlan0 has an IP
result = re.search(
'inet addr:(?!127\.0{1,3}\.0{1,3}\.0{0,2}1$)((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)',
p.stdout.decode('ascii'))