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:
Simon Duquennoy 2016-05-03 10:28:59 +02:00
commit 896c58cd98
14 changed files with 28 additions and 28 deletions

View file

@ -323,11 +323,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -323,11 +323,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -272,11 +272,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -7038,11 +7038,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -321,11 +321,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -327,11 +327,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -339,11 +339,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -339,11 +339,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -339,11 +339,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -339,11 +339,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -339,11 +339,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -339,11 +339,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -234,12 +234,12 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 for(i = 0; i < numMissed; i++) {
packets = packets.substr(0, lastMsg + i + 1) + "_"; 
 packets = packets.substr(0, lastMsg + i + 1).concat("_"); 
}
 }
} 
 } 
}
 }
lastMsgHops = hops;
 lastMsgHops = hops;
packets = packets.substr(0, num) + "*";
 packets = packets.substr(0, num).concat("*");
log.log("" + hops + " " + packets + "\n");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }

View file

@ -368,11 +368,11 @@ while(true) {
lostMsgs += numMissed; 
 lostMsgs += numMissed; 
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
 log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {
 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");
 log.log("" + hops + " " + packets + "\n");
lastMsg = num;
 lastMsg = num;
}
 }