tests: Wrap check_align() calls with base_run_test()

Otherwise the FAIL results won't be accounted for in the summary.
Easily testable by artifically causing them to fail:

-        if [ $(($size % $align)) -eq 0 ] ;then
+        if [ $(($size % $align)) -eq 666 ] ;then

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Lubomir Rintel 2018-10-03 15:12:11 +02:00 committed by David Gibson
parent 522d81d572
commit 8f8b77a0d6

View file

@ -730,10 +730,10 @@ dtc_tests () {
for align in 2 4 8 16 32 64; do for align in 2 4 8 16 32 64; do
# -p -a # -p -a
run_dtc_test -O dtb -p 1000 -a $align -o align0.dtb subnode_iterate.dts run_dtc_test -O dtb -p 1000 -a $align -o align0.dtb subnode_iterate.dts
check_align align0.dtb $align base_run_test check_align align0.dtb $align
# -S -a # -S -a
run_dtc_test -O dtb -S 1999 -a $align -o align1.dtb subnode_iterate.dts run_dtc_test -O dtb -S 1999 -a $align -o align1.dtb subnode_iterate.dts
check_align align1.dtb $align base_run_test check_align align1.dtb $align
done done
# Tests for overlay/plugin generation # Tests for overlay/plugin generation