abuild: Don't keep around old junit reports

junit reports were kept around (and appended to) in some cases, leading
to duplicate reports on jenkins.
Drop old per-mainboard reports before building said boards, and do the
same for the tools (reported thrice).

Change-Id: I74a035587bbf917dca85ba6fc74621c583efe9a2
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/12280
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Patrick Georgi 2015-10-31 08:53:30 +01:00 committed by Patrick Georgi
parent 0c65dccd3f
commit 5ab5a39d2e
1 changed files with 2 additions and 0 deletions

View File

@ -315,6 +315,7 @@ function build_target
mkdir -p $TARGET/${MAINBOARD} $TARGET/abuild mkdir -p $TARGET/${MAINBOARD} $TARGET/abuild
ABSPATH=`cd $TARGET/abuild; pwd` ABSPATH=`cd $TARGET/abuild; pwd`
XMLFILE=$ABSPATH/${MAINBOARD}.xml XMLFILE=$ABSPATH/${MAINBOARD}.xml
rm -f ${XMLFILE}
stime=`perl -e 'print time();' 2>/dev/null || date +%s` stime=`perl -e 'print time();' 2>/dev/null || date +%s`
@ -585,6 +586,7 @@ build_targets()
mkdir -p $TARGET/abuild mkdir -p $TARGET/abuild
local ABSPATH=`cd $TARGET/abuild; pwd` local ABSPATH=`cd $TARGET/abuild; pwd`
local XMLFILE=$ABSPATH/__util.xml local XMLFILE=$ABSPATH/__util.xml
rm -f ${XMLFILE}
local stime=`perl -e 'print time();' 2>/dev/null || date +%s` local stime=`perl -e 'print time();' 2>/dev/null || date +%s`
$BUILDPREFIX $MAKE -j $cpus DOTCONFIG=$TMPCFG obj=$TARGET/temp objutil=$TARGET/sharedutils tools > $TARGET/sharedutils/make.log 2>&1 $BUILDPREFIX $MAKE -j $cpus DOTCONFIG=$TMPCFG obj=$TARGET/temp objutil=$TARGET/sharedutils tools > $TARGET/sharedutils/make.log 2>&1
local ret=$? local ret=$?