Add timeout warning log for test runner. Increase timeout to 1200

This commit is contained in:
Hristo Deshev
2016-09-16 12:04:49 +03:00
parent dcb2b5d6c0
commit f7627bb863

View File

@ -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