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")) {
 } else if(msg.startsWith("Sending")) {
hops = 0;
 hops = 0;
} else if(msg.startsWith("#L")) {
 } else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
 hops++;
} else if(msg.startsWith("Data")) {
 } else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
 // log.log("" + msg + "\n"); 
@ -323,7 +323,7 @@ while(true) {
// log.log("Num " + num + "\n");
 // log.log("Num " + num + "\n");
if(lastMsg != -1) {
 if(lastMsg != -1) {
if(num != lastMsg + 1) {
 if(num != lastMsg + 1) {
numMissed = num - lastMsg;
 numMissed = num - lastMsg - 1;
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++) {

View File

@ -312,7 +312,7 @@ while(true) {
}
 }
} else if(msg.startsWith("Sending")) {
 } else if(msg.startsWith("Sending")) {
hops = 0;
 hops = 0;
} else if(msg.startsWith("#L")) {
 } else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
 hops++;
} else if(msg.startsWith("Data")) {
 } else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
 // log.log("" + msg + "\n"); 
@ -323,7 +323,7 @@ while(true) {
// log.log("Num " + num + "\n");
 // log.log("Num " + num + "\n");
if(lastMsg != -1) {
 if(lastMsg != -1) {
if(num != lastMsg + 1) {
 if(num != lastMsg + 1) {
numMissed = num - lastMsg;
 numMissed = num - lastMsg - 1;
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++) {

View File

@ -261,7 +261,7 @@ while(true) {
}
 }
} else if(msg.startsWith("Sending")) {
 } else if(msg.startsWith("Sending")) {
hops = 0;
 hops = 0;
} else if(msg.startsWith("#L")) {
 } else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
 hops++;
} else if(msg.startsWith("Data")) {
 } else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
 // log.log("" + msg + "\n"); 
@ -272,7 +272,7 @@ while(true) {
// log.log("Num " + num + "\n");
 // log.log("Num " + num + "\n");
if(lastMsg != -1) {
 if(lastMsg != -1) {
if(num != lastMsg + 1) {
 if(num != lastMsg + 1) {
numMissed = num - lastMsg;
 numMissed = num - lastMsg - 1;
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++) {

View File

@ -7027,7 +7027,7 @@ while(true) {
}
 }
} else if(msg.startsWith("Sending")) {
 } else if(msg.startsWith("Sending")) {
hops = 0;
 hops = 0;
} else if(msg.startsWith("#L")) {
 } else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
 hops++;
} else if(msg.startsWith("Data")) {
 } else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
 // log.log("" + msg + "\n"); 
@ -7038,7 +7038,7 @@ while(true) {
// log.log("Num " + num + "\n");
 // log.log("Num " + num + "\n");
if(lastMsg != -1) {
 if(lastMsg != -1) {
if(num != lastMsg + 1) {
 if(num != lastMsg + 1) {
numMissed = num - lastMsg;
 numMissed = num - lastMsg - 1;
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++) {

View File

@ -310,7 +310,7 @@ while(true) {
}
 }
} else if(msg.startsWith("Sending")) {
 } else if(msg.startsWith("Sending")) {
hops = 0;
 hops = 0;
} else if(msg.startsWith("#L")) {
 } else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
 hops++;
} else if(msg.startsWith("Data")) {
 } else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
 // log.log("" + msg + "\n"); 
@ -321,7 +321,7 @@ while(true) {
// log.log("Num " + num + "\n");
 // log.log("Num " + num + "\n");
if(lastMsg != -1) {
 if(lastMsg != -1) {
if(num != lastMsg + 1) {
 if(num != lastMsg + 1) {
numMissed = num - lastMsg;
 numMissed = num - lastMsg - 1;
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++) {

View File

@ -310,7 +310,7 @@ while(true) {
}
 }
} else if(msg.startsWith("Sending")) {
 } else if(msg.startsWith("Sending")) {
hops = 0;
 hops = 0;
} else if(msg.startsWith("#L")) {
 } else if(msg.startsWith("#L") && msg.endsWith("1; red")) {
hops++;
 hops++;
} else if(msg.startsWith("Data")) {
 } else if(msg.startsWith("Data")) {
// log.log("" + msg + "\n"); 
 // log.log("" + msg + "\n"); 
@ -321,7 +321,7 @@ while(true) {
// log.log("Num " + num + "\n");
 // log.log("Num " + num + "\n");
if(lastMsg != -1) {
 if(lastMsg != -1) {
if(num != lastMsg + 1) {
 if(num != lastMsg + 1) {
numMissed = num - lastMsg;
 numMissed = num - lastMsg - 1;
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++) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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