diff options
author | 2016-05-31 15:35:33 +0000 | |
---|---|---|
committer | 2016-05-31 18:07:44 +0000 | |
commit | dc54452bafbb50029ba11678ade3ad85ad028817 (patch) | |
tree | d51171bf1de0fdc7cd0562099cfccb4b54f52c9d /src/test/shell | |
parent | a8efe484a666a36cb545114c272e4e07cc3b3b5a (diff) |
Make Android rules/tests refer to the correct runfiles paths
Fixes the android part of #1316.
--
MOS_MIGRATED_REVID=123644129
Diffstat (limited to 'src/test/shell')
-rwxr-xr-x | src/test/shell/bazel/android/android_integration_test.sh | 6 | ||||
-rwxr-xr-x | src/test/shell/bazel/test-setup.sh | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/test/shell/bazel/android/android_integration_test.sh b/src/test/shell/bazel/android/android_integration_test.sh index 7d3dd34f4f..5efbcca37d 100755 --- a/src/test/shell/bazel/android/android_integration_test.sh +++ b/src/test/shell/bazel/android/android_integration_test.sh @@ -205,15 +205,15 @@ function test_android_binary_clang() { } # ndk r10 and earlier -if [[ ! -r "${BAZEL_RUNFILES}/external/androidndk/ndk/RELEASE.TXT" ]]; then +if [[ ! -r "${TEST_SRCDIR}/androidndk/ndk/RELEASE.TXT" ]]; then # ndk r11 and later - if [[ ! -r "${BAZEL_RUNFILES}/external/androidndk/ndk/source.properties" ]]; then + if [[ ! -r "${TEST_SRCDIR}/androidndk/ndk/source.properties" ]]; then echo "Not running Android tests due to lack of an Android NDK." exit 0 fi fi -if [[ ! -r "${BAZEL_RUNFILES}/external/androidsdk/SDK Readme.txt" ]]; then +if [[ ! -r "${TEST_SRCDIR}/androidsdk/SDK Readme.txt" ]]; then echo "Not running Android tests due to lack of an Android SDK." exit 0 fi diff --git a/src/test/shell/bazel/test-setup.sh b/src/test/shell/bazel/test-setup.sh index a8b0e77bd1..05f265f33c 100755 --- a/src/test/shell/bazel/test-setup.sh +++ b/src/test/shell/bazel/test-setup.sh @@ -66,8 +66,8 @@ function setup_android_support() { # TODO(bazel-team): This hard-codes the name of the Android repository in # the WORKSPACE file of Bazel. Change this once external repositories have # their own defined names under which they are mounted. - NDK_SRCDIR=$BAZEL_RUNFILES/external/androidndk/ndk - SDK_SRCDIR=$BAZEL_RUNFILES/external/androidsdk + NDK_SRCDIR=$TEST_SRCDIR/androidndk/ndk + SDK_SRCDIR=$TEST_SRCDIR/androidsdk mkdir -p $ANDROID_NDK mkdir -p $ANDROID_SDK |