mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Use absolute paths on run_tests
This commit is contained in:
@@ -5,8 +5,9 @@ OUTPUT_DIR=app/build/outputs
|
|||||||
AVD_NAME=$1
|
AVD_NAME=$1
|
||||||
AVD_SERIAL=$2
|
AVD_SERIAL=$2
|
||||||
|
|
||||||
|
ADB="${ANDROID_HOME}/platform-tools/adb -s emulator-${AVD_SERIAL}"
|
||||||
|
EMULATOR="${ANDROID_HOME}/tools/emulator"
|
||||||
GRADLE="./gradlew --no-daemon --stacktrace"
|
GRADLE="./gradlew --no-daemon --stacktrace"
|
||||||
ADB="adb -s emulator-${AVD_SERIAL}"
|
|
||||||
|
|
||||||
info() {
|
info() {
|
||||||
local COLOR='\033[1;32m'
|
local COLOR='\033[1;32m'
|
||||||
@@ -22,9 +23,8 @@ fail() {
|
|||||||
|
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
info "Starting emulator"
|
info "Starting emulator"
|
||||||
$ANDROID_HOME/tools/emulator \
|
$EMULATOR -avd ${AVD_NAME} -port ${AVD_SERIAL} -no-audio -no-window &
|
||||||
-avd ${AVD_NAME} -port ${AVD_SERIAL} -no-audio -no-window &
|
$ADB wait-for-device || fail
|
||||||
$ADB wait-for-device
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user