mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +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
|
||||
|
||||
#exp_internal 1
|
||||
|
||||
#set timeout 600
|
||||
|
||||
#spawn grunt
|
||||
#expect "TypeScript compilation complete"
|
||||
#send \003
|
||||
|
||||
|
||||
set cmd [lindex $argv 0];
|
||||
set outfile [lindex $argv 1];
|
||||
|
||||
set timeout 600
|
||||
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
|
||||
set timeout 1200
|
||||
log_file -noappend $outfile
|
||||
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
|
||||
|
Reference in New Issue
Block a user