diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-08-09 16:13:57 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-09 16:13:57 -0700 |
commit | 4910e36a8af3d651b15e1a46f5f03918b2389135 (patch) | |
tree | d816a117c8996509f937dd84766215439219d715 /test | |
parent | 7bf5c90075f114a4b011c794cb3b185fada9e0dc (diff) | |
download | connman-4910e36a8af3d651b15e1a46f5f03918b2389135.tar.gz connman-4910e36a8af3d651b15e1a46f5f03918b2389135.tar.bz2 connman-4910e36a8af3d651b15e1a46f5f03918b2389135.zip |
Update simple test script for D-Bus interface of supplicant
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-supplicant | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/test/test-supplicant b/test/test-supplicant index e79228dd..68ac6630 100755 --- a/test/test-supplicant +++ b/test/test-supplicant @@ -24,9 +24,12 @@ except: interface = dbus.Interface(bus.get_object(WPA_NAME, path), WPA_INTF + ".Interface") -print interface.state() +print "state = %s" % (interface.state()) -print interface.scan() +try: + print "scanning = %s" % (interface.scanning()) +except: + pass print "[ %s ]" % (path) @@ -38,9 +41,18 @@ for key in capabilities.keys(): list += " " + value print " %s =%s" % (key, list) -time.sleep(2) +interface.scan() + +time.sleep(1) + +try: + print "scanning = %s" % (interface.scanning()) +except: + pass + +time.sleep(1) -print interface.state() +print "state = %s" % (interface.state()) results = interface.scanResults() |