Update test scripts

This commit is contained in:
Jeffrey Walton 2021-02-07 10:53:29 -05:00
parent de8809d4eb
commit cf3a31bc09
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 4 additions and 4 deletions

View File

@ -45,6 +45,7 @@ if [ -z "${ANDROID_NDK_ROOT}" ]; then
exit 1
fi
if false; then
if [[ ! -d "${ANDROID_SDK_ROOT}" ]]; then
echo "ANDROID_SDK_ROOT does not exist. The directory will be created."
if ! mkdir -p "${ANDROID_SDK_ROOT}"; then
@ -60,6 +61,7 @@ if [[ ! -d "${ANDROID_NDK_ROOT}" ]]; then
echo "Is ANDROID_NDK_ROOT writeable? Maybe you need to run this script with 'sudo -E'."
fi
fi
fi # false
# Temp directory
if [[ -z "$TMPDIR" ]]; then

View File

@ -139,16 +139,14 @@ ANDROID_SYSROOT="${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${HOST_TAG}/sysroo
# Error checking
if [ ! -d "${ANDROID_TOOLCHAIN}" ]; then
echo "ERROR: ANDROID_TOOLCHAIN is not a valid path. Please set it."
echo "Path is ${ANDROID_TOOLCHAIN}"
echo "ls of ANDROID_TOOLCHAIN is $(ls ${ANDROID_TOOLCHAIN})"
echo "ANDROID_TOOLCHAIN is '${ANDROID_TOOLCHAIN}'"
[ "$0" = "${BASH_SOURCE[0]}" ] && exit 1 || return 1
fi
# Error checking
if [ ! -d "${ANDROID_SYSROOT}" ]; then
echo "ERROR: ANDROID_SYSROOT is not a valid path. Please set it."
echo "Path is ${ANDROID_SYSROOT}"
echo "ls of ANDROID_SYSROOT is $(ls ${ANDROID_SYSROOT})"
echo "ANDROID_SYSROOT is '${ANDROID_SYSROOT}'"
[ "$0" = "${BASH_SOURCE[0]}" ] && exit 1 || return 1
fi