[PATCH] tests: Wrap check_align() calls with base_run_test()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxx>
---
 tests/run_tests.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index e3e64e8..0e9f345 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -724,10 +724,10 @@ dtc_tests () {
     for align in 2 4 8 16 32 64; do
 	# -p -a
 	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
 	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
 
     # Tests for overlay/plugin generation
-- 
2.19.0




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux