mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
Add timeout warning log for test runner. Increase timeout to 1200
This commit is contained in:
17
expect.exp
17
expect.exp
@ -1,20 +1,13 @@
|
|||||||
#! /usr/bin/expect
|
#! /usr/bin/expect
|
||||||
|
|
||||||
#exp_internal 1
|
|
||||||
|
|
||||||
#set timeout 600
|
|
||||||
|
|
||||||
#spawn grunt
|
|
||||||
#expect "TypeScript compilation complete"
|
|
||||||
#send \003
|
|
||||||
|
|
||||||
|
|
||||||
set cmd [lindex $argv 0];
|
set cmd [lindex $argv 0];
|
||||||
set outfile [lindex $argv 1];
|
set outfile [lindex $argv 1];
|
||||||
|
|
||||||
set timeout 600
|
set timeout 1200
|
||||||
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
|
|
||||||
log_file -noappend $outfile
|
log_file -noappend $outfile
|
||||||
eval spawn $cmd
|
eval spawn $cmd
|
||||||
expect "Tests EOF!"
|
expect {
|
||||||
|
"Tests EOF!" { puts "Tests completed in time, EOF found." }
|
||||||
|
timeout { puts "Tests FAILED, timeout waiting tests EOF."; exit 1 }
|
||||||
|
}
|
||||||
send \003
|
send \003
|
||||||
|
Reference in New Issue
Block a user