mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Reduce the timeout of the test run. Start in no-window
This commit is contained in:
@ -9,7 +9,7 @@
|
|||||||
#send \003
|
#send \003
|
||||||
|
|
||||||
|
|
||||||
set timeout 1200
|
set timeout 600
|
||||||
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
|
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
|
||||||
log_file -noappend ./__TESTRESULT__.txt
|
log_file -noappend ./__TESTRESULT__.txt
|
||||||
spawn adb logcat
|
spawn adb logcat
|
||||||
|
@ -4,18 +4,16 @@ rm -rd $workingdir
|
|||||||
mkdir $workingdir
|
mkdir $workingdir
|
||||||
cd $workingdir
|
cd $workingdir
|
||||||
|
|
||||||
|
# Creating the emulator with:
|
||||||
#android create avd -t "android-21" -n Api21 -b "default/x86"
|
#android create avd -t "android-21" -n Api21 -b "default/x86"
|
||||||
|
|
||||||
#if [ 1 == 2 ] ; then
|
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo "Killing the emulator..."
|
echo "Killing the emulator..."
|
||||||
time pkill ".*emulator64-x86" && true
|
time pkill ".*emulator64-x86" && true
|
||||||
|
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo "Starting the emulator..."
|
echo "Starting the emulator..."
|
||||||
#time emulator -avd Api19 -no-skin -no-audio & # -gpu on
|
time emulator -avd Api19 -no-audio --no-window &
|
||||||
time emulator -avd Api19 -no-audio & # -gpu on
|
|
||||||
#emulator -avd Api19 -no-skin -no-audio -no-window &
|
|
||||||
|
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo "Creating the app..."
|
echo "Creating the app..."
|
||||||
@ -49,8 +47,6 @@ cd $workingdir
|
|||||||
echo "Starting the adb server..."
|
echo "Starting the adb server..."
|
||||||
time adb start-server
|
time adb start-server
|
||||||
|
|
||||||
#fi
|
|
||||||
|
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo "Uninstalling the app..."
|
echo "Uninstalling the app..."
|
||||||
time adb uninstall org.nativescript.TestsApp
|
time adb uninstall org.nativescript.TestsApp
|
||||||
@ -68,3 +64,5 @@ cd $startdir
|
|||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo "Waiting for the tests to finish executing..."
|
echo "Waiting for the tests to finish executing..."
|
||||||
time ./expect.exp
|
time ./expect.exp
|
||||||
|
|
||||||
|
#pkill ".*emulator64-x86" && true
|
||||||
|
Reference in New Issue
Block a user