scripts/collect-results: Handle artefact collection/separation

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2024-07-17 14:44:51 +01:00
parent 0646d5df44
commit 19f4fa0ac5

View File

@ -14,6 +14,12 @@ if [ -e $WORKDIR/tmp/log/oeqa/ ] && [ -n "$(ls -A "$WORKDIR/tmp/log/oeqa/")" ];
cp -Lrf $WORKDIR/tmp/log/oeqa/ $DEST/$target cp -Lrf $WORKDIR/tmp/log/oeqa/ $DEST/$target
fi fi
if [ -e $WORKDIR/tmp/log/oeqa-artefacts/ ] && [ -n "$(ls -A "$WORKDIR/tmp/log/oeqa-artefacts/")" ]; then
mkdir -p $DEST/../artefacts/
cp -Lrf $WORKDIR/tmp/log/oeqa-artefacts/ $DEST/../artefacts/$target
fi
if [ -e $WORKDIR/buildhistory ]; then if [ -e $WORKDIR/buildhistory ]; then
# ab-fetchrev tag set in buildhistory-init # ab-fetchrev tag set in buildhistory-init
if [ $(git -C $WORKDIR/buildhistory tag -l "ab-fetchrev") ]; then if [ $(git -C $WORKDIR/buildhistory tag -l "ab-fetchrev") ]; then