projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1514d22
)
test: fixing type conversion bug in test-session
author
Tomasz Bursztyka
<tomasz.bursztyka@linux.intel.com>
Wed, 15 Feb 2012 08:19:47 +0000
(10:19 +0200)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Tue, 28 Feb 2012 11:17:34 +0000
(13:17 +0200)
test/test-session
patch
|
blob
|
history
diff --git
a/test/test-session
b/test/test-session
index
6c7fa5c
..
dcb372f
100755
(executable)
--- a/
test/test-session
+++ b/
test/test-session
@@
-112,8
+112,11
@@
class SessionApplication(dbus.service.Object):
del self.sessions[session_name]
def type_convert(self, key, value):
- if key in [ "AllowedBearers"
, "RoamingPolicy"
]:
+ if key in [ "AllowedBearers" ]:
return value
+ elif key in [ "RoamingPolicy" ]:
+ if len(value) > 0:
+ return value[0]
elif key in [ "Priority", "AvoidHandover",
"StayConnected", "EmergencyCall" ]:
flag = str(value[0]).strip().lower()