Output sha1sums of files used for simulation on fail

This helps reproducing results from the CI
This commit is contained in:
Moritz 'Morty' Strübe 2014-10-14 09:55:20 +02:00
parent a488ac16cc
commit 1692169138
2 changed files with 10 additions and 7 deletions

View file

@ -54,12 +54,15 @@ while (( "$#" )); do
#Verbose output when using CI #Verbose output when using CI
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "==== COOJA.log ====" ; cat COOJA.log; echo "==== COOJA.log ====" ; cat COOJA.log;
echo "==== COOJA.testlog ====" ; cat COOJA.testlog; echo "==== COOJA.testlog ====" ; cat COOJA.testlog;
else echo "==== Files used for simulation (sha1sum) ===="
tail -50 COOJA.log ; grep "Loading firmware from:" COOJA.log | cut -d " " -f 10 | uniq | xargs -r sha1sum
fi; grep "Creating core communicator between Java class" COOJA.log | cut -d " " -f 17 | uniq | xargs -r sha1sum
else
tail -50 COOJA.log ;
fi;
mv COOJA.testlog $BASENAME.$RANDOMSEED.faillog mv COOJA.testlog $BASENAME.$RANDOMSEED.faillog

View file

@ -403,7 +403,7 @@ public class ContikiMoteType implements MoteType {
} }
// Allocate core communicator class // Allocate core communicator class
logger.info("Creating core communicator between Java class '" + javaClassName + "' and Contiki library '" + getContikiFirmwareFile().getName() + "'"); logger.info("Creating core communicator between Java class " + javaClassName + " and Contiki library '" + getContikiFirmwareFile().getPath() + "");
myCoreComm = CoreComm.createCoreComm(this.javaClassName, getContikiFirmwareFile()); myCoreComm = CoreComm.createCoreComm(this.javaClassName, getContikiFirmwareFile());
/* Parse addresses using map file /* Parse addresses using map file