yocto-autobuilder-helper/scripts/collect-results
Richard Purdie e1564ff86c collect-results: Generate buildhistory-diff output
Since we now have functional buildhistory repository functionality,
generate buildhistory-diff output for builds where its enabled.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-21 13:50:26 +00:00

377 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 mkdir -p $DEST/$target $WORKDIR/../scripts/buildhistory-diff -p $WORKDIR/buildhistory > $DEST/$target/buildhistory.txt fi