summaryrefslogtreecommitdiff
path: root/test/test-health
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-12-21 00:18:18 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-12-21 00:18:18 +0200
commit98b4797764ccb114c9a1ee00d911d0f88c3f7180 (patch)
tree8116880d65a3d39621347712c5543e83a6f87a7f /test/test-health
parentdb5d83d6f3b897066a818f45c57cc3120e7f4e96 (diff)
downloadbluez-98b4797764ccb114c9a1ee00d911d0f88c3f7180.tar.gz
health: Use lower-case strings for enum values (for consistency)
Diffstat (limited to 'test/test-health')
-rwxr-xr-xtest/test-health16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test-health b/test/test-health
index 666972cc9..052a6024c 100755
--- a/test/test-health
+++ b/test/test-health
@@ -64,9 +64,9 @@ while role == None:
try:
sel = int(sys.stdin.readline())
if sel == 1:
- role = "Source"
+ role = "source"
elif sel == 2:
- role = "Sink"
+ role = "sink"
else:
raise ValueError
except (TypeError, ValueError):
@@ -88,16 +88,16 @@ while dtype == None:
sys.exit()
pref = None
-if role == "Source":
+if role == "source":
while pref == None:
try:
print("Select a preferred data channel type 1.",)
print("reliable 2. streaming: ",)
sel = int(sys.stdin.readline())
if sel == 1:
- pref = "Reliable"
+ pref = "reliable"
elif sel == 2:
- pref = "Streaming"
+ pref = "streaming"
else:
raise ValueError
@@ -217,10 +217,10 @@ if echo:
print("Connecting to device %s" % (select))
-if role == "Source":
- chan = device.CreateChannel(app_path, "Reliable")
+if role == "source":
+ chan = device.CreateChannel(app_path, "reliable")
else:
- chan = device.CreateChannel(app_path, "Any")
+ chan = device.CreateChannel(app_path, "any")
print(chan)