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 */
|
||||
if (msg.startsWith('Contiki')) {
|
||||
log.log('TEST OK\n'); /* Report test success */
|
||||
|
||||
/* To increase test run speed, close the simulator when done */
|
||||
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
|
||||
log.testOK(); /* Report test success */
|
||||
} else {
|
||||
log.log('TEST FAIL\n'); /* Report test failure */
|
||||
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
|
||||
log.testFailed(); /* Report test failure */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue