From 9b0d389ea181d2193cc9b0c0fa838aae1279a0c7 Mon Sep 17 00:00:00 2001 From: Nabil Hachicha Date: Tue, 26 Jan 2016 21:05:37 +0000 Subject: [PATCH] fixing adb path --- scripts/test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index e15dbabc..072bbb2c 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -37,7 +37,7 @@ function start_packager() function unlock_device() { - adb shell input keyevent 82 + /opt/android-sdk-linux/platform-tools/adb shell input keyevent 82 } # kill old packagers @@ -92,8 +92,8 @@ elif [ "$TARGET" = "react-tests-android" ]; then LOGCAT_OUT="logcat_out.txt" rm -f $LOGCAT_OUT - adb logcat -c - adb logcat | tee $LOGCAT_OUT & + /opt/android-sdk-linux/platform-tools/adb logcat -c + /opt/android-sdk-linux/platform-tools/adb logcat | tee $LOGCAT_OUT & while :; do if grep -q "__REALM_REACT_ANDROID_TESTS_COMPLETED__" $LOGCAT_OUT @@ -105,7 +105,7 @@ elif [ "$TARGET" = "react-tests-android" ]; then fi done - adb pull /sdcard/tests.xml . || true + /opt/android-sdk-linux/platform-tools/adb pull /sdcard/tests.xml . || true more "********* TESTS COMPLETED *********"; more "********* File location: `pwd`/tests.xml *********"; more tests.xml