Index: build/android/pylib/constants.py |
diff --git a/build/android/pylib/constants.py b/build/android/pylib/constants.py |
index cef098fa0d92d6237747f24d835d64b7b0621b1f..29da601259ddb734145583b41ca4e390fc75990e 100644 |
--- a/build/android/pylib/constants.py |
+++ b/build/android/pylib/constants.py |
@@ -189,13 +189,12 @@ PYTHON_UNIT_TEST_SUITES = { |
'pylib.device.device_utils_test', |
] |
}, |
-# TODO(mkosiba) Enable after fixing these tests. |
-# 'gyp_py_unittests': { |
-# 'path': os.path.join(constants.DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), |
-# 'test_modules': [ |
-# 'java_cpp_enum_tests' |
-# ] |
-# }, |
+ 'gyp_py_unittests': { |
+ 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), |
+ 'test_modules': [ |
+ 'java_cpp_enum_tests', |
+ ] |
+ }, |
} |
LOCAL_MACHINE_TESTS = ['junit', 'python'] |
@@ -217,6 +216,10 @@ def SetBuildDirectory(build_directory): |
os.environ['CHROMIUM_OUT_DIR'] = build_directory |
+def SetOutputDirectort(output_directory): |
+ os.environ['CHROMIUM_OUTPUT_DIR'] = output_directory |
+ |
+ |
def GetOutDirectory(build_type=None): |
"""Returns the out directory where the output binaries are built. |
@@ -224,6 +227,10 @@ def GetOutDirectory(build_type=None): |
build_type: Build type, generally 'Debug' or 'Release'. Defaults to the |
globally set build type environment variable BUILDTYPE. |
""" |
+ if 'CHROMIUM_OUTPUT_DIR' in os.environ: |
+ return os.path.abspath(os.path.join( |
+ DIR_SOURCE_ROOT, os.environ.get('CHROMIUM_OUTPUT_DIR'))) |
+ |
return os.path.abspath(os.path.join( |
DIR_SOURCE_ROOT, os.environ.get('CHROMIUM_OUT_DIR', 'out'), |
GetBuildType() if build_type is None else build_type)) |