Fix log messages of Travis tests in 12-rpl

This commit is contained in:
Simon Duquennoy 2015-05-10 13:46:53 +02:00
parent 05d2d843da
commit 043f6a39c1
12 changed files with 24 additions and 24 deletions

View file

@ -312,7 +312,7 @@ while(true) {
}
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -323,7 +323,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -312,7 +312,7 @@ while(true) {
}
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -323,7 +323,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -261,7 +261,7 @@ while(true) {
}
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -272,7 +272,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -7027,7 +7027,7 @@ while(true) {
}
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -7038,7 +7038,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -310,7 +310,7 @@ while(true) {
}
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -321,7 +321,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -310,7 +310,7 @@ while(true) {
}
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -321,7 +321,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -327,7 +327,7 @@ while(true) {
node8.getInterfaces().getPosition().setCoordinates(58, 108, 0);
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -339,7 +339,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -327,7 +327,7 @@ while(true) {
node8.getInterfaces().getPosition().setCoordinates(58, 108, 0);
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -339,7 +339,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -327,7 +327,7 @@ while(true) {
node8.getInterfaces().getPosition().setCoordinates(58, 108, 0);
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -339,7 +339,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -327,7 +327,7 @@ while(true) {
node8.getInterfaces().getPosition().setCoordinates(58, 108, 0);
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -339,7 +339,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -327,7 +327,7 @@ while(true) {
node8.getInterfaces().getPosition().setCoordinates(58, 108, 0);
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -339,7 +339,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {

View file

@ -327,7 +327,7 @@ while(true) {
node8.getInterfaces().getPosition().setCoordinates(58, 108, 0);
} else if(msg.startsWith("Sending")) {
hops = 0;
} else if(msg.startsWith("#L")) {
} else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
} else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
@ -339,7 +339,7 @@ while(true) {
// log.log("Num " + num + "\n");
if(lastMsg != -1) {
if(num != lastMsg + 1) {
numMissed = num - lastMsg;
numMissed = num - lastMsg - 1;
lostMsgs += numMissed;
log.log("Missed messages " + numMissed + " before " + num + "\n"); 
for(i = 0; i < numMissed; i++) {