using the new methods for reporting test ok/failed.
This commit is contained in:
parent
28ed5e2a4a
commit
875be00548
|
@ -3,11 +3,7 @@
|
||||||
|
|
||||||
/* Contiki test script example */
|
/* Contiki test script example */
|
||||||
if (msg.startsWith('Contiki')) {
|
if (msg.startsWith('Contiki')) {
|
||||||
log.log('TEST OK\n'); /* Report test success */
|
log.testOK(); /* Report test success */
|
||||||
|
|
||||||
/* To increase test run speed, close the simulator when done */
|
|
||||||
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
|
|
||||||
} else {
|
} else {
|
||||||
log.log('TEST FAIL\n'); /* Report test failure */
|
log.testFailed(); /* Report test failure */
|
||||||
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue