From fe536d78bada50c9610a74f96a272379a5223ff1 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 19 May 2022 01:23:45 +0200 Subject: tests: Don't count number of test units for demos ...there are no 'test' directives in demo, and this causes a script failure. Reviewed-by: David Gibson Signed-off-by: Stefano Brivio --- test/lib/test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/lib') diff --git a/test/lib/test b/test/lib/test index a5583e3..09e8340 100755 --- a/test/lib/test +++ b/test/lib/test @@ -386,8 +386,10 @@ test_one() { return fi - __ntests="$(grep -c "^test$(printf '\t')" "${__test_file}")" - [ ${DEMO} -eq 0 ] && status_file_start "${1}" "${__ntests}" + if [ ${DEMO} -eq 0 ]; then + __ntests="$(grep -c "^test$(printf '\t')" "${__test_file}")" + status_file_start "${1}" "${__ntests}" + fi [ ${CI} -eq 1 ] && video_link "${1}" -- cgit v1.2.3