From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson To: passt-dev@passt.top Subject: Re: [PATCH 2/3] tests: Don't count number of test units for demos Date: Thu, 19 May 2022 13:48:47 +1000 Message-ID: In-Reply-To: <20220518232829.2775820-3-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4378703224082111688==" --===============4378703224082111688== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Thu, May 19, 2022 at 01:28:28AM +0200, Stefano Brivio wrote: > ...there are no 'test' directives in demo, and this causes a > script failure. > > Signed-off-by: Stefano Brivio Reviewed-by: David Gibson > --- > 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}" > -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --===============4378703224082111688== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUVCQ0FBZEZpRUVvVUx4V3U0L1dz MGRCK1h0Z3lwWTRnRXdZU0lGQW1LRnZoa0FDZ2tRZ3lwWTRnRXcKWVNJYW1CQUFpZ25WVEpSRjVD MTVQWkJKSGlHU2NGdXA2ajlOKy9xMTlFdFhXeXlkb2srbDdjMVlNbnhEQmM1bwo5NktDTCszZVJW QW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