aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-run-test-rsync-release.sh
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2021-01-05 09:30:08 +0000
committerCorentin LABBE <clabbe@baylibre.com>2021-01-05 09:37:58 +0000
commit9f29f1da6e6ecdcf4845e9e25ba8f420ef2e5891 (patch)
tree8750b0f5d42133fe9a1c35fe485354e31786208d /jjb/common/include-agl-run-test-rsync-release.sh
parentc934abbf77a57a02cb75ba773e9070318fa8407d (diff)
SPEC-3751: workaround absence of ext4.xz images
Current h3ulcb/rpi4 builds produces nbdroot images in ext4 and not ext4.xz format. This patch adds a workaround which compress thoses images. Change-Id: I979d37be6067e57477a1062ab416229db85209c7 Bug-AGL: SPEC-3751 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'jjb/common/include-agl-run-test-rsync-release.sh')
-rw-r--r--jjb/common/include-agl-run-test-rsync-release.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/jjb/common/include-agl-run-test-rsync-release.sh b/jjb/common/include-agl-run-test-rsync-release.sh
index 7be8bfa3..dfdffe77 100644
--- a/jjb/common/include-agl-run-test-rsync-release.sh
+++ b/jjb/common/include-agl-run-test-rsync-release.sh
@@ -29,6 +29,19 @@ for board in $(ls $BOARDOUT)
do
# copy files to $DEST
. $BOARDOUT/$board/info
+
+ # detect BUG SPEC-3751
+ F_NBDROOT="tmp/deploy/images/${TARGETMACHINE}/$DEVICE_NBDROOT"
+ if [ ! -e "$F_NBDROOT" ];then
+ NOXZ=$(echo "$F_NBDROOT" | sed 's,.xz$,,')
+ if [ ! -e "$NOXZ" ];then
+ echo "ERROR: cannot recovery from SPEC-3751, $NOXZ does not exists"
+ else
+ echo "DEBUG: xz $NOXZ to $F_NBDROOT"
+ xz --threads=0 --stdout "$NOXZ" > "$F_NBDROOT"
+ fi
+ fi
+
echo "INFO: copy artifact for $x_releng_device/$x_lava_device"
for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT; do
eval cp -avL tmp/deploy/images/${TARGETMACHINE}/$(echo "$"${i}) ${DEST}/