From b9d3d22894725c3a4ca8419ebeff3175a1f6fc86 Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Mon, 22 May 2017 13:22:16 -0400 Subject: [PATCH] Use absolute paths on run_tests --- run_tests | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run_tests b/run_tests index db4e15af4..90895b80f 100755 --- a/run_tests +++ b/run_tests @@ -5,8 +5,9 @@ OUTPUT_DIR=app/build/outputs AVD_NAME=$1 AVD_SERIAL=$2 +ADB="${ANDROID_HOME}/platform-tools/adb -s emulator-${AVD_SERIAL}" +EMULATOR="${ANDROID_HOME}/tools/emulator" GRADLE="./gradlew --no-daemon --stacktrace" -ADB="adb -s emulator-${AVD_SERIAL}" info() { local COLOR='\033[1;32m' @@ -22,9 +23,8 @@ fail() { #-------------------------------------------------------------------------------- info "Starting emulator" -$ANDROID_HOME/tools/emulator \ - -avd ${AVD_NAME} -port ${AVD_SERIAL} -no-audio -no-window & -$ADB wait-for-device +$EMULATOR -avd ${AVD_NAME} -port ${AVD_SERIAL} -no-audio -no-window & +$ADB wait-for-device || fail sleep 10 #--------------------------------------------------------------------------------