Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(836)

Unified Diff: test/mm-register

Issue 6731056: Update to test scripts to work with both ModemManager and Cromo (Closed) Base URL: ssh://gitrw.chromium.org:9222/flimflam.git@master
Patch Set: Fix review comments Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mm-poll-signal-strength ('k') | test/mm-reset » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mm-register
diff --git a/test/mm-register b/test/mm-register
index ec766897ad38460e6ae7e1acea0ee3a529ffbba6..b1a3ea60ce35c776480dfc2c60a0a75276f9a511 100755
--- a/test/mm-register
+++ b/test/mm-register
@@ -1,19 +1,21 @@
#!/usr/bin/python
+# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
import dbus
import mm
import sys
-manager = mm.ModemManager()
-
-devices = manager.manager.EnumerateDevices()
+devices = mm.EnumerateDevices()
network = ""
if len(sys.argv) > 1:
network = sys.argv[1]
-for path in devices:
+for manager, path in devices:
props = manager.Properties(path)
« no previous file with comments | « test/mm-poll-signal-strength ('k') | test/mm-reset » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698