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

Side by Side 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: Fix review comments Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/mm-register ('k') | test/mm-set-carrier » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
3 import dbus 7 import dbus
4 import mm 8 import mm
5 import sys 9 import sys
6 10
7 def Usage(prog): 11 def Usage(prog):
8 print ("Usage: %s " 12 print ("Usage: %s "
9 "<device path substring>") % prog 13 "<device path substring>") % prog
10 14
11 if len(sys.argv) < 1 or len(sys.argv) > 2: 15 if len(sys.argv) < 1 or len(sys.argv) > 2:
12 Usage(sys.argv[0]) 16 Usage(sys.argv[0])
13 sys.exit(1) 17 sys.exit(1)
14 18
15 if len(sys.argv) < 2: 19 if len(sys.argv) < 2:
16 modem_pattern = '' 20 modem_pattern = ''
17 else: 21 else:
18 modem_pattern = sys.argv[1] 22 modem_pattern = sys.argv[1]
19 23
20 manager = mm.ModemManager() 24 manager, path = mm.PickOneModem(modem_pattern)
21 target = mm.PickOneModem(manager, modem_pattern) 25 gobi_modem = manager.GobiModem(path)
22 gobi_modem = manager.GobiModem(target)
23 gobi_modem.SoftReset() 26 gobi_modem.SoftReset()
OLDNEW
« no previous file with comments | « test/mm-register ('k') | test/mm-set-carrier » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698