osd-contiki/regression-tests/25-ieee802154/js/02-tsch-packet-create.js

28 lines
469 B
JavaScript
Raw Permalink Normal View History

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;
}
}
}