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

Unified Diff: client/bin/site_ui_test.py

Issue 3150025: [autotest] add more logging when we change DNS (Closed) Base URL: http://src.chromium.org/git/autotest.git
Patch Set: Created 10 years, 4 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: client/bin/site_ui_test.py
diff --git a/client/bin/site_ui_test.py b/client/bin/site_ui_test.py
index 39db52a32e2d648984e110e9c36858aaf3614c15..a101d9ff85976d0856b8a88b0f0f927ae70d79c7 100644
--- a/client/bin/site_ui_test.py
+++ b/client/bin/site_ui_test.py
@@ -76,13 +76,16 @@ class UITest(bin_test.test):
self._flim = flimflam.FlimFlam(self._system_bus)
for device in self._flim.GetObjectList('Device'):
properties = device.GetProperties()
+ logging.debug("Considering " + properties['Type'])
for path in properties['IPConfigs']:
ipconfig = self._flim.GetObjectInterface('IPConfig', path)
servers = ipconfig.GetProperties().get('NameServers', None)
if servers != None:
self._dns[path] = ','.join(servers)
+ logging.debug("Cached DNS for " + properties['Type'])
ipconfig.SetProperty('NameServers', '127.0.0.1')
+ logging.debug("Changed DNS for " + properties['Type'])
site_utils.poll_for_condition(
lambda: self.__attempt_resolve('www.google.com', '127.0.0.1'),
« 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