mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Change the output file to be an argument to the expect script. Pass it from the runner. Ignore the output file name
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -27,3 +27,5 @@ obj/
|
|||||||
.baseDir.ts
|
.baseDir.ts
|
||||||
.ctags-exclude
|
.ctags-exclude
|
||||||
tags
|
tags
|
||||||
|
|
||||||
|
TestRunResult.txt
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
#expect "TypeScript compilation complete"
|
#expect "TypeScript compilation complete"
|
||||||
#send \003
|
#send \003
|
||||||
|
|
||||||
|
set outfile [lindex $argv 0];
|
||||||
set timeout 600
|
set timeout 600
|
||||||
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
|
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
|
||||||
log_file -noappend ./__TESTRESULT__.txt
|
log_file -noappend $outfile
|
||||||
spawn adb logcat
|
spawn adb logcat
|
||||||
expect "=== ALL TESTS COMPLETE ==="
|
expect "=== ALL TESTS COMPLETE ==="
|
||||||
send \003
|
send \003
|
||||||
|
@ -4,6 +4,7 @@ startdir=$(pwd)
|
|||||||
emuProcId=".*emulator64-x86"
|
emuProcId=".*emulator64-x86"
|
||||||
emuAvdName=Api19
|
emuAvdName=Api19
|
||||||
androidRuntimePath=/Users/erjan/tns-android.tgz
|
androidRuntimePath=/Users/erjan/tns-android.tgz
|
||||||
|
outfile=./TestRunResult.txt
|
||||||
|
|
||||||
testsAppName=TestsApp
|
testsAppName=TestsApp
|
||||||
pathToApk=./platforms/android/build/outputs/apk/$testsAppName-debug.apk
|
pathToApk=./platforms/android/build/outputs/apk/$testsAppName-debug.apk
|
||||||
@ -76,7 +77,7 @@ 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 $outfile
|
||||||
|
|
||||||
pkill $emuProcId && true
|
pkill $emuProcId && true
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user