2017-01-11 19:49:50 +00:00
|
|
|
TIMEOUT(10000, log.testFailed());
|
|
|
|
|
|
|
|
var failed = false;
|
|
|
|
|
|
|
|
while(true) {
|
|
|
|
YIELD();
|
|
|
|
|
|
|
|
log.log(time + " " + "node-" + id + " "+ msg + "\n");
|
2018-04-07 13:19:58 +00:00
|
|
|
|
2017-01-11 19:49:50 +00:00
|
|
|
if(msg.contains("=check-me=") == false) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(msg.contains("FAILED")) {
|
|
|
|
failed = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(msg.contains("DONE")) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(failed) {
|
|
|
|
log.testFailed();
|
|
|
|
}
|
|
|
|
log.testOK();
|