mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-25 13:31:37 +00:00
11 lines
438 B
JavaScript
11 lines
438 B
JavaScript
|
/* Script is called once for every node log output. */
|
||
|
/* Input variables: Mote mote, int id, String msg. */
|
||
|
|
||
|
if (msg.startsWith('Coffee consistency test: 0')) {
|
||
|
log.log('TEST OK');
|
||
|
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
|
||
|
} else if (msg.startsWith('Coffee consistency test')) {
|
||
|
log.log('TEST FAILED');
|
||
|
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
|
||
|
}
|