diff mbox series

[isar-cip-core,5/5] scripts/repro-tests.sh: Add *wic.p0 image into reproducible tests

Message ID 20230911133147.3164-6-venkata.pyla@toshiba-tsip.com (mailing list archive)
State Accepted
Headers show
Series Add security and BBB targets in | expand

Commit Message

Venkata Pyla Sept. 11, 2023, 1:31 p.m. UTC
From: venkata pyla <venkata.pyla@toshiba-tsip.com>

BBB disk image contains raw partitions that creates as *.wic.p0, so add
them to reproducible tests.

Signed-off-by: venkata pyla <venkata.pyla@toshiba-tsip.com>
---
 scripts/repro-tests.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/scripts/repro-tests.sh b/scripts/repro-tests.sh
index 2143058..127484f 100755
--- a/scripts/repro-tests.sh
+++ b/scripts/repro-tests.sh
@@ -74,6 +74,7 @@  fi
 
 # Define files in the artifacts for checking the reproducibility
 set -- \
+	"${IMAGE_BASE}-${RELEASE}-${TARGET}.wic.p0" \
 	"${IMAGE_BASE}-${RELEASE}-${TARGET}.wic.p1" \
 	"${IMAGE_BASE}-${RELEASE}-${TARGET}.wic.p2" \
 	"${IMAGE_BASE}-${RELEASE}-${TARGET}.wic.p3" \
@@ -86,8 +87,8 @@  set -- \
 res=0
 for file in "$@"; do
 	if [ -f "${artifacts1}/${file}" ] && [ -f "${artifacts2}/${file}" ]; then
-		label=$(blkid -s LABEL -o value ${artifacts1}/${file})
-		fstype=$(blkid -s TYPE -o value ${artifacts1}/${file})
+		label=$(blkid -s LABEL -o value ${artifacts1}/${file} || true)
+		fstype=$(blkid -s TYPE -o value ${artifacts1}/${file} || true)
 		if $DIFFOSCOPE --text "${file}.diffoscope_output.txt" \
 			--html-dir diffoscope_output \
 			--html "${file}.diffoscope_output.html" \