yocto-autobuilder-helper/scripts/collect-results
Richard Purdie a93a79945f scripts/collect-results: Ensure selftest doesn't trigger buildhistory results collection
Affects sumo since that doesn't have oe-selftest parallelism. thud/master create
these in a different location so don't see the issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-25 10:07:21 +00:00

521 B
Executable File

#!/bin/bash WORKDIR=$1 DEST=$2 target=$3

RESFILE=$WORKDIR/tmp/log/oeqa/testresults.json

if [ -e $RESFILE ]; then mkdir -p $DEST/$target cp $WORKDIR/tmp/log/oeqa/testresults.json $DEST/$target/ fi

if [ -e $WORKDIR/buildhistory ]; then # ab-fetchrev tag set in buildhistory-init if [ $(git -C $WORKDIR/buildhistory tag -l "ab-fetchrev") ]; then mkdir -p $DEST/$target $WORKDIR/../scripts/buildhistory-diff -p $WORKDIR/buildhistory ab-fetchrev > $DEST/$target/buildhistory.txt fi fi