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' |