diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2010-07-09 17:42:04 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-07-09 17:42:04 +0200 |
commit | dd09a5c764c75b2b4e2d63e83eb2f0cf227b87dc (patch) | |
tree | 5f3b1645ae326c6193561d2f439c4f71345b9ffa /test | |
parent | fe1e4c2420c27c51af70a44a04b3a584a99d73c4 (diff) | |
download | connman-dd09a5c764c75b2b4e2d63e83eb2f0cf227b87dc.tar.gz connman-dd09a5c764c75b2b4e2d63e83eb2f0cf227b87dc.tar.bz2 connman-dd09a5c764c75b2b4e2d63e83eb2f0cf227b87dc.zip |
Parse boolean flag from test-connman argv
Any non empty string evaluates to True which is clearly not intended.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-connman | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-connman b/test/test-connman index aa781c3b..174525a6 100755 --- a/test/test-connman +++ b/test/test-connman @@ -298,7 +298,8 @@ elif sys.argv[1] in ["autoconnect", "autoconn"]: "org.moblin.connman.Service") if (len(sys.argv) > 3): - autoconnect = dbus.Boolean(sys.argv[3]) + flag = sys.argv[3].strip().lower() + autoconnect = dbus.Boolean(flag not in ['false', 'f', 'n', '0']) service.SetProperty("AutoConnect", autoconnect); |