summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-10-31 08:53:30 +0100
committerPatrick Georgi <pgeorgi@google.com>2015-11-01 14:26:56 +0100
commit5ab5a39d2ed0ea28347218ad5e129a7c8244012c (patch)
tree7a609cd19e91e282051b49ab7771c75fe92e2dba
parent0c65dccd3f2d2443459fc00d63f096a94cba2d13 (diff)
downloadcoreboot-5ab5a39d2ed0ea28347218ad5e129a7c8244012c.tar.xz
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>
-rwxr-xr-xutil/abuild/abuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index daf53c663e..51011a1d52 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -315,6 +315,7 @@ function build_target
mkdir -p $TARGET/${MAINBOARD} $TARGET/abuild
ABSPATH=`cd $TARGET/abuild; pwd`
XMLFILE=$ABSPATH/${MAINBOARD}.xml
+ rm -f ${XMLFILE}
stime=`perl -e 'print time();' 2>/dev/null || date +%s`
@@ -585,6 +586,7 @@ build_targets()
mkdir -p $TARGET/abuild
local ABSPATH=`cd $TARGET/abuild; pwd`
local XMLFILE=$ABSPATH/__util.xml
+ rm -f ${XMLFILE}
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
local ret=$?