From f7627bb8635d3b46c192e6668cf313179224acaa Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Fri, 16 Sep 2016 12:04:49 +0300 Subject: [PATCH] Add timeout warning log for test runner. Increase timeout to 1200 --- expect.exp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/expect.exp b/expect.exp index c53a3a928..0abf9c007 100755 --- a/expect.exp +++ b/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