Skip to contentSkip to conversation

scripts/collect-results: publish everything in tmp/log/oeqa

PATCH New Alexander Kanavin 1 participant 1 message Sep 22, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/collect-results: publish everything in tmp/log/oeqa

From: Alexander Kanavin <[email protected]>

In addition to the testresult json, testimage class now also provides task logs and qemu console output (splitted into folders by image name to avoid clutter), 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.

[YOCTO #14518]

---
 scripts/collect-results | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
scripts/collect-results +3 -5
index 93834d6..3663330 100755
@@ -3,11 +3,9 @@ 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/
+mkdir -p $DEST
+if [ -e $WORKDIR/tmp/log/oeqa/ ]; then
+    cp -rf $WORKDIR/tmp/log/oeqa/ $DEST/$target
 fi
 
 if [ -e $WORKDIR/buildhistory ]; then
Signature · 1 line
2.31.1