summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-07-25 12:04:33 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-07-25 12:04:33 -0700
commit0d5174d14c5b795ef306ddc6a740ad22c53a71d6 (patch)
tree40462522787eabcf12cf6eab7d3590bc7e8db7f3 /test
parentc4fd43a4ca1de3665407abe852a9a81ecdb1dd88 (diff)
downloadconnman-0d5174d14c5b795ef306ddc6a740ad22c53a71d6.tar.gz
connman-0d5174d14c5b795ef306ddc6a740ad22c53a71d6.tar.bz2
connman-0d5174d14c5b795ef306ddc6a740ad22c53a71d6.zip
Fix script for testing counter interface
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-counter8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-counter b/test/test-counter
index 2cdee341..8b3062ca 100755
--- a/test/test-counter
+++ b/test/test-counter
@@ -59,14 +59,14 @@ if __name__ == '__main__':
manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
'org.moblin.connman.Manager')
- interval = 2
+ period = 2
if len(sys.argv) > 1:
- interval = sys.argv[1]
+ period = sys.argv[1]
- path = "/test/counter%s" % interval
+ path = "/test/counter%s" % period
object = Counter(bus, path)
- manager.RegisterCounter(path, dbus.UInt32(interval))
+ manager.RegisterCounter(path, dbus.UInt32(10), dbus.UInt32(period))
mainloop = gobject.MainLoop()
mainloop.run()