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

Unified Diff: test/mm-reset

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: Minor fixes 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
Index: test/mm-reset
diff --git a/test/mm-reset b/test/mm-reset
index 2e9175a79cde9a8ce06a8d9619917feae4365ecb..dbd71983d15cdd8adfd8077c88c66ad86deef790 100644
--- a/test/mm-reset
+++ b/test/mm-reset
@@ -1,5 +1,9 @@
#!/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
@@ -17,7 +21,6 @@ if len(sys.argv) < 2:
else:
modem_pattern = sys.argv[1]
-manager = mm.ModemManager()
-target = mm.PickOneModem(manager, modem_pattern)
-gobi_modem = manager.GobiModem(target)
+(manager, path) = mm.PickOneModem(modem_pattern)
+gobi_modem = manager.GobiModem(path)
gobi_modem.SoftReset()
« test/mm-factory-reset ('K') | « test/mm-register ('k') | test/mm-set-carrier » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698