From 06d5d49e50d1493978e339b1e1fd3698375db9cd Mon Sep 17 00:00:00 2001 From: Fredrik Osterlind Date: Tue, 31 Jan 2012 12:58:07 +0100 Subject: [PATCH] fix: test failed since shell echo no longer appends a newline --- .../contiki_tests/sky_shell_exec_serial.csc | 27 ++++++++----------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/tools/cooja/contiki_tests/sky_shell_exec_serial.csc b/tools/cooja/contiki_tests/sky_shell_exec_serial.csc index 964c97333..d7319dc9a 100644 --- a/tools/cooja/contiki_tests/sky_shell_exec_serial.csc +++ b/tools/cooja/contiki_tests/sky_shell_exec_serial.csc @@ -1,8 +1,5 @@ - [CONTIKI_DIR]/tools/cooja/apps/mrm - [CONTIKI_DIR]/tools/cooja/apps/mspsim - [CONTIKI_DIR]/tools/cooja/apps/avrora My simulation 0 @@ -22,8 +19,8 @@ se.sics.cooja.mspmote.SkyMoteType sky1 Sky Mote Type #sky1 - [CONTIKI_DIR]/examples/sky-shell-exec/sky-shell-exec.c - echo CLEANING + [CONTIKI_DIR]/examples/sky-shell-exec/sky-shell-exec.c + echo CLEANING make clean TARGET=sky echo COMPILING CONTIKI EXECUTABLE @@ -35,7 +32,7 @@ make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky - [CONTIKI_DIR]/examples/sky-shell-exec/sky-shell-exec.sky + [CONTIKI_DIR]/examples/sky-shell-exec/sky-shell-exec.sky se.sics.cooja.interfaces.Position se.sics.cooja.interfaces.IPAddress se.sics.cooja.interfaces.Mote2MoteRelations @@ -44,12 +41,10 @@ make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky se.sics.cooja.mspmote.interfaces.SkyButton se.sics.cooja.mspmote.interfaces.SkyFlash se.sics.cooja.mspmote.interfaces.SkyByteRadio - se.sics.cooja.mspmote.interfaces.SkySerial + se.sics.cooja.mspmote.interfaces.MspSerial se.sics.cooja.mspmote.interfaces.SkyLED - se.sics.cooja.mspmote.SkyMote - sky1 se.sics.cooja.interfaces.Position @@ -61,6 +56,11 @@ make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky se.sics.cooja.mspmote.interfaces.MspMoteID 1 + + se.sics.cooja.mspmote.interfaces.MspSerial + ls~;~K~;ls~;read hello-world.b64~; + + sky1 @@ -70,7 +70,6 @@ make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky 200 0 0 - false se.sics.cooja.plugins.MoteInterfaceViewer @@ -84,7 +83,6 @@ make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky 551 3 347 - false se.sics.cooja.mspmote.plugins.MspStackWatcher @@ -94,7 +92,6 @@ make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky 201 247 -1 - false se.sics.cooja.plugins.ScriptRunner @@ -151,7 +148,7 @@ while (!msg.contains("Contiki>")) { log.testFailed(); } else { log.log("VERIFIED: " + msg + "\n"); - sb.replace(0, msg.length()-1, new String("")); + sb.replace(0, msg.trim().length(), new String("")); } YIELD(); @@ -192,8 +189,7 @@ while (true) { log.log("> ELF loader error: " + msg +"\n"); log.testFailed(); } -} - +} true 600 @@ -201,7 +197,6 @@ while (true) { 700 215 199 - false