mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-19 18:40:17 +00:00
28 lines
469 B
JavaScript
28 lines
469 B
JavaScript
TIMEOUT(10000, log.testFailed());
|
|
|
|
num_of_motes = sim.getMotesCount();
|
|
|
|
while(true) {
|
|
YIELD();
|
|
|
|
log.log(time + " node-" + id + ": "+ msg + "\n");
|
|
|
|
if(msg.contains("=check-me=") == false) {
|
|
continue;
|
|
}
|
|
|
|
if(msg.contains("FAILED")) {
|
|
log.testFailed();
|
|
break;
|
|
}
|
|
|
|
if(msg.contains("DONE")) {
|
|
num_of_motes -= 1;
|
|
if(num_of_motes == 0) {
|
|
log.testOK();
|
|
break;
|
|
}
|
|
}
|
|
|
|
}
|