test: Support the possibility to input multiple parameters into simple-agent
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 6 Mar 2012 12:45:14 +0000 (14:45 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Mar 2012 17:25:59 +0000 (18:25 +0100)
Fixes BMC#24965

test/simple-agent

index d15b450..dac1fed 100755 (executable)
@@ -35,11 +35,9 @@ class Agent(dbus.service.Object):
                                if arg.startswith("Identity="):
                                        identity = arg.replace("Identity=", "", 1)
                                        response["Identity"] = identity
-                                       break
                                if arg.startswith("Passphrase="):
                                        passphrase = arg.replace("Passphrase=", "", 1)
                                        response["Passphrase"] = passphrase
-                                       break
                                if arg.startswith("WPS="):
                                        wpspin = arg.replace("WPS=", "", 1)
                                        response["WPS"] = wpspin
@@ -64,11 +62,9 @@ class Agent(dbus.service.Object):
                                if arg.startswith("Username="):
                                        username = arg.replace("Username=", "", 1)
                                        response["Username"] = username
-                                       break
                                if arg.startswith("Password="):
                                        password = arg.replace("Password=", "", 1)
                                        response["Password"] = password
-                                       break
                else:
                        if self.username:
                                response["Username"] = self.username