From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 2/3] tests: Don't count number of test units for demos Date: Thu, 19 May 2022 01:28:28 +0200 Message-ID: <20220518232829.2775820-3-sbrivio@redhat.com> In-Reply-To: <20220518232829.2775820-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6324867713197201577==" --===============6324867713197201577== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ...there are no 'test' directives in demo, and this causes a script failure. Signed-off-by: Stefano Brivio --- test/lib/test | 6 ++++-- 1 file 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}" -- 2.35.1 --===============6324867713197201577==--