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

@ -57,6 +57,9 @@ while (( "$#" )); do
if [ "$CI" = "true" ]; then
echo "==== COOJA.log ====" ; cat COOJA.log;
echo "==== COOJA.testlog ====" ; cat COOJA.testlog;
echo "==== Files used for simulation (sha1sum) ===="
grep "Loading firmware from:" COOJA.log | cut -d " " -f 10 | uniq | xargs -r sha1sum
grep "Creating core communicator between Java class" COOJA.log | cut -d " " -f 17 | uniq | xargs -r sha1sum
else
tail -50 COOJA.log ;
fi;

View File

@ -403,7 +403,7 @@ public class ContikiMoteType implements MoteType {
}
// 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());
/* Parse addresses using map file