aboutgitcodebugslistschat
path: root/test
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-05-19 01:23:45 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-05-19 15:24:19 +0200
commitfe536d78bada50c9610a74f96a272379a5223ff1 (patch)
treebfa6a3c4e82f926a2b3991c951c9dd7a23504b54 /test
parentc447344158a0a8d11d364200de27aff2dc57a47e (diff)
downloadpasst-fe536d78bada50c9610a74f96a272379a5223ff1.tar
passt-fe536d78bada50c9610a74f96a272379a5223ff1.tar.gz
passt-fe536d78bada50c9610a74f96a272379a5223ff1.tar.bz2
passt-fe536d78bada50c9610a74f96a272379a5223ff1.tar.lz
passt-fe536d78bada50c9610a74f96a272379a5223ff1.tar.xz
passt-fe536d78bada50c9610a74f96a272379a5223ff1.tar.zst
passt-fe536d78bada50c9610a74f96a272379a5223ff1.zip
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 <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/lib/test6
1 files changed, 4 insertions, 2 deletions
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}"