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

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

Issue 22933005: [android] Make build_type a singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix call to _LogToFile 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
« no previous file with comments | « build/android/pylib/chrome_test_server_spawner.py ('k') | build/android/pylib/device_stats_monitor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/constants.py
diff --git a/build/android/pylib/constants.py b/build/android/pylib/constants.py
index 6cbe727c93c4a74cb93a051c92ac5130d549324c..dd68f4adbf9b3a3f05c6a40b870803a06fa4550d 100644
--- a/build/android/pylib/constants.py
+++ b/build/android/pylib/constants.py
@@ -83,6 +83,17 @@ ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com'
+def GetBuildType():
+ try:
+ return os.environ['CHROMIUM_BUILD_TYPE']
bulach 2013/08/16 09:06:57 drive-by: at least downstream, buildbot passes BUI
+ except KeyError:
+ raise Exception('The build type has not been set')
+
+
+def SetBuildType(build_type):
+ os.environ['CHROMIUM_BUILD_TYPE'] = build_type
+
+
def _GetADBPath():
if os.environ.get('ANDROID_SDK_ROOT'):
return 'adb'
« no previous file with comments | « build/android/pylib/chrome_test_server_spawner.py ('k') | build/android/pylib/device_stats_monitor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698