mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-09 19:31:04 +00:00
Merge pull request #1647 from yatch/pr-rpl-regression-substr-fix
Resolve script errors raised during the RPL regression tests on Ubuntu 14.04
This commit is contained in:
commit
896c58cd98
regression-tests/12-rpl
01-rpl-up-route.csc02-rpl-root-reboot.csc03-rpl-28-hours.csc04-rpl-large-network.csc05-rpl-up-and-down-routes.csc06-rpl-temporary-root-loss.csc08-rpl-dao-route-loss-0.csc08-rpl-dao-route-loss-1.csc08-rpl-dao-route-loss-2.csc08-rpl-dao-route-loss-3.csc08-rpl-dao-route-loss-4.csc08-rpl-dao-route-loss-5.csc09-rpl-probing.csc10-rpl-multi-dodag.csc
@ -323,11 +323,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -323,11 +323,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -272,11 +272,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -7038,11 +7038,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -321,11 +321,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -327,11 +327,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -339,11 +339,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -339,11 +339,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -339,11 +339,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -339,11 +339,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -339,11 +339,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -339,11 +339,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -234,12 +234,12 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
lastMsgHops = hops;
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
@ -368,11 +368,11 @@ while(true) {
|
||||
lostMsgs += numMissed; 
|
||||
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
|
||||
for(i = 0; i < numMissed; i++) {
|
||||
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
|
||||
packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
|
||||
}
|
||||
} 
|
||||
}
|
||||
packets = packets.substr(0, num) + "*";
|
||||
packets = packets.substr(0, num).concat("*");
|
||||
log.log("" + hops + " " + packets + "\n");
|
||||
lastMsg = num;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user