Skip to content

Commit f7627bb

Browse files
committed
Add timeout warning log for test runner. Increase timeout to 1200
1 parent dcb2b5d commit f7627bb

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

expect.exp

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
#! /usr/bin/expect
22

3-
#exp_internal 1
4-
5-
#set timeout 600
6-
7-
#spawn grunt
8-
#expect "TypeScript compilation complete"
9-
#send \003
10-
11-
123
set cmd [lindex $argv 0];
134
set outfile [lindex $argv 1];
145

15-
set timeout 600
16-
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
6+
set timeout 1200
177
log_file -noappend $outfile
188
eval spawn $cmd
19-
expect "Tests EOF!"
9+
expect {
10+
"Tests EOF!" { puts "Tests completed in time, EOF found." }
11+
timeout { puts "Tests FAILED, timeout waiting tests EOF."; exit 1 }
12+
}
2013
send \003

0 commit comments

Comments
 (0)