From 445d6b6a720674a6dafdc1e638fe81c1e54b6e0b Mon Sep 17 00:00:00 2001 From: fros4943 Date: Sat, 14 Nov 2009 11:52:03 +0000 Subject: [PATCH] test script bug fix: serial writes to motes should not include a newline. the additional newline character was earlier (wrongly) dropped by the serial line module, but is now handled by the ringbuf-based serial line implementation --- .../contiki_tests/sky_shell_exec_serial.csc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/cooja/contiki_tests/sky_shell_exec_serial.csc b/tools/cooja/contiki_tests/sky_shell_exec_serial.csc index 65d5700a4..964c97333 100644 --- a/tools/cooja/contiki_tests/sky_shell_exec_serial.csc +++ b/tools/cooja/contiki_tests/sky_shell_exec_serial.csc @@ -1,9 +1,8 @@ - ../apps/mrm - ../apps/mspsim - ../apps/avrora - ../apps/native_gateway + [CONTIKI_DIR]/tools/cooja/apps/mrm + [CONTIKI_DIR]/tools/cooja/apps/mspsim + [CONTIKI_DIR]/tools/cooja/apps/avrora My simulation 0 @@ -16,11 +15,14 @@ 1.0 1.0 + + 40000 + se.sics.cooja.mspmote.SkyMoteType sky1 Sky Mote Type #sky1 - ../../../examples/sky-shell-exec/sky-shell-exec.c + [CONTIKI_DIR]/examples/sky-shell-exec/sky-shell-exec.c echo CLEANING make clean TARGET=sky @@ -33,7 +35,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 - ../../../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 @@ -121,7 +123,7 @@ sb = new java.lang.StringBuilder(); process = new java.lang.Runtime.getRuntime().exec(cmdarr, null, helloworld.getParentFile()); stdIn = new java.io.BufferedReader(new java.io.InputStreamReader(process.getInputStream())); while ((line = stdIn.readLine()) != null) { - write(mote, line + "\n"); + write(mote, line); sb.append(line); YIELD();