From: Marcel Holtmann Date: Fri, 26 Dec 2008 11:43:26 +0000 (+0100) Subject: Convert scripts using type lists X-Git-Tag: 2.0_alpha~4325 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=552094eba3795ba2dd398dd30cfa69fae929753d;p=framework%2Fconnectivity%2Fconnman.git Convert scripts using type lists --- diff --git a/test/list-networks b/test/list-networks index b446210..d8958fb 100755 --- a/test/list-networks +++ b/test/list-networks @@ -25,7 +25,7 @@ for path in properties["Devices"]: properties = device.GetProperties() - if (properties["Type"] != "wifi" and properties["Type"] != "wimax"): + if properties["Type"] not in ["wifi", "wimax", "bluetooth"]: continue; print "[ %s ]" % (path) diff --git a/test/start-scanning b/test/start-scanning index aaa3e58..cf36477 100755 --- a/test/start-scanning +++ b/test/start-scanning @@ -17,11 +17,8 @@ for path in properties["Devices"]: print "[ %s ]" % (path) - if (properties["Type"] == "wifi"): - print " Started WiFi scanning" - device.ProposeScan() - elif (properties["Type"] == "wimax"): - print " Started WiMAX scanning" + if properties["Type"] in ["wifi", "wimax"]: + print " Started scanning" device.ProposeScan() else: print " No scanning"