Commit b3a582b3 authored by Aneta Steimarova's avatar Aneta Steimarova

#691 Added timeout to while cycle

parent 93e25022
......@@ -275,7 +275,8 @@ def runTest(String iTestName) {
def adbStdOut = new ByteArrayOutputStream()
while(true) {
def timeout = 0;
while(timeout<1200) { //timeout is set to 20 minuts
if(adbStdOut.toString().trim().contains("PROCESSING")){
def adbPSOut = new ByteArrayOutputStream()
exec {
......@@ -290,7 +291,10 @@ def runTest(String iTestName) {
commandLine "$adb", 'shell', "ls", "/sdcard/iTest_results"
standardOutput = adbStdOut
}
sleep(1000)
timeout++;
}
println "[iTest] Test " + iTestName + " timed out."
}
task runAndroidITestBundle {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment