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

Unified Diff: build/android/pylib/android_commands.py

Issue 23503015: Only check if setup wizard is disabled if doing provision check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Take out assert from android_commands.py. Created 7 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
Index: build/android/pylib/android_commands.py
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
index f8c074758d08c35ce7b637959447b1a68faaf598..be0a057d9d925d1ea70dd38f54968eb0f265123c 100644
--- a/build/android/pylib/android_commands.py
+++ b/build/android/pylib/android_commands.py
@@ -1083,7 +1083,8 @@ class AndroidCommands(object):
def GetSetupWizardStatus(self):
"""Returns the status of the device setup wizard (e.g. DISABLED)."""
status = self.RunShellCommand('getprop ro.setupwizard.mode')[0]
- assert status
+ # On some devices, the status is empty if not otherwise set. In such cases
+ # the caller should expect an empty string to be returned.
return status
def StartMonitoringLogcat(self, clear=True, logfile=None, filters=None):

Powered by Google App Engine
This is Rietveld 408576698