
In addition to the testresult json, testimage class now also provides the testimage task log and qemu console output log which can be useful for debugging test failures or even checking qemu test runs when failures did not happen. Rather than duplicate specific file/folder names, let's copy all that is available, and define what is published in the testimage class itself (with appropriate folder structure if/when needed). At the moment there's just three files, and they are copied into folders named after image names, so there's no clutter or risk of mixing them up with unrelated logs. [YOCTO #14518] Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
1.1 KiB
Executable File
#!/bin/bash WORKDIR=$1 DEST=$2 target=$3
mkdir -p $DEST if [ -e $WORKDIR/tmp/log/oeqa/ ]; then cp -Lrf $WORKDIR/tmp/log/oeqa/ $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
HSFILE=$WORKDIR/tmp/buildstats//host_stats d="intermittent_failure_host_data"
mkdir -p $DEST/$target/$d
step_i=1
step_f=1
for f in $HSFILE; do
if [ -e $f ]; then
cp $f $DEST/$target/$d
if [[ "$f" == "failure" ]] ; then
mv $DEST/$target/$d/basename $f
$DEST/$target/$d/basename $f
${step_f}.txt
step_f=$((step_f+1))
continue
fi
grep -m 1 "^top -" $f
if [ $? -eq 0 ]; then
mv $DEST/$target/$d/basename $f
$DEST/$target/$d/basename $f
${step_i}top.txt
else
mv $DEST/$target/$d/basename $f
$DEST/$target/$d/basename $f
${step_i}.txt
fi
step_i=$((step_i+1))
fi
done