From 4910e36a8af3d651b15e1a46f5f03918b2389135 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 9 Aug 2009 16:13:57 -0700 Subject: [PATCH] Update simple test script for D-Bus interface of supplicant --- test/test-supplicant | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/test/test-supplicant b/test/test-supplicant index e79228d..68ac663 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() -- 2.7.4