mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 16:29:34 +00:00
22 lines
334 B
JavaScript
22 lines
334 B
JavaScript
|
TIMEOUT(10000, log.testFailed());
|
||
|
|
||
|
while(true) {
|
||
|
YIELD();
|
||
|
|
||
|
log.log(time + " " + id + " "+ msg + "\n");
|
||
|
|
||
|
if(msg.contains("=check-me=") == false) {
|
||
|
continue;
|
||
|
}
|
||
|
|
||
|
if(msg.contains("FAILED")) {
|
||
|
log.testFailed();
|
||
|
}
|
||
|
|
||
|
if(msg.contains("DONE")) {
|
||
|
log.testOK();
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
}
|