From 08047d1a27102e98de03c0735f4f39dcf82a9a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20=27Morty=27=20Str=C3=BCbe?= Date: Thu, 7 Nov 2013 19:11:34 +0100 Subject: [PATCH] Tolerate loosing one packet in 01-sky-shell-collect.csc --- regression-tests/08-collect/01-sky-shell-collect.csc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regression-tests/08-collect/01-sky-shell-collect.csc b/regression-tests/08-collect/01-sky-shell-collect.csc index b2f277514..32694c103 100644 --- a/regression-tests/08-collect/01-sky-shell-collect.csc +++ b/regression-tests/08-collect/01-sky-shell-collect.csc @@ -33,7 +33,7 @@ se.sics.cooja.mspmote.interfaces.MspMoteID se.sics.cooja.mspmote.interfaces.SkyButton se.sics.cooja.mspmote.interfaces.SkyFlash - se.sics.cooja.mspmote.interfaces.SkyByteRadio + se.sics.cooja.mspmote.interfaces.Msp802154Radio se.sics.cooja.mspmote.interfaces.MspSerial se.sics.cooja.mspmote.interfaces.SkyLED @@ -371,7 +371,7 @@ total_latency = 0; nodes_starting = true; for(i = 1; i <= nrNodes; i++) { booted[i] = false; - received[i] = "__________"; + received[i] = "___________"; hops[i] = received[i]; } @@ -404,7 +404,7 @@ GENERATE_MSG(20000, "continue"); YIELD_THEN_WAIT_UNTIL(msg.equals("continue")); node = sink_node; log.log("Writing netcmd\n"); -node.write("netcmd { repeat 10 30 { randwait 30 collect-view-data | blink | send } }"); +node.write("netcmd { repeat 11 30 { randwait 30 collect-view-data | blink | send } }"); while(true) { YIELD(); @@ -471,7 +471,7 @@ while(true) { num_reported = 0; for(i = 1; i <= nrNodes; i++) { if(i != sink) { - if(!isNaN(received[i])) { + if(received[i].split("_").length -1 <= 1) { num_reported++; } }