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

Unified Diff: test/mm.py

Issue 6792040: test/mm.py: Do not die if cromo or momdemmanager is not running (Closed) Base URL: ssh://gitrw.chromium.org:9222/flimflam.git@master
Patch Set: Fix typos 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mm.py
diff --git a/test/mm.py b/test/mm.py
index dfdb0a092bed0451a8add1c3ef027d13ba819641..61d5f60251378bfeb7101fbef7ff10da1ce0d550 100755
--- a/test/mm.py
+++ b/test/mm.py
@@ -98,7 +98,13 @@ def EnumerateDevices(manager=None):
if manager:
managers = [manager]
else:
- managers = [ModemManager(x) for x in MMPROVIDERS]
+ managers = []
+ for provider in MMPROVIDERS:
+ try:
+ managers.append(ModemManager(provider))
+ except dbus.exceptions.DBusException, e:
+ if e._dbus_error_name != 'org.freedesktop.DBus.Error.ServiceUnknown':
+ raise
result = []
for m in managers:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698