From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson To: passt-dev@passt.top Subject: Re: [PATCH 3/3] tests: Don't check exit code for every command in demo mode Date: Thu, 19 May 2022 13:49:08 +1000 Message-ID: In-Reply-To: <20220518232829.2775820-4-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3619754868588408054==" --===============3619754868588408054== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Thu, May 19, 2022 at 01:28:29AM +0200, Stefano Brivio wrote: > Having all those 'echo $?' is rather distracting in demos. > > Signed-off-by: Sefano Brivio Reviewed-by: David Gibson > --- > test/lib/term | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/test/lib/term b/test/lib/term > index 004c2a2..0f581de 100755 > --- a/test/lib/term > +++ b/test/lib/term > @@ -232,6 +232,9 @@ pane_parse() { > # $1: Pane name > pane_status() { > pane_wait "${1}" > + > + [ ${DEMO} -eq 1 ] && return 0 > + > __status="$(pane_parse "${1}")" > while ! [ "${__status}" -eq "${__status}" ]; do > sleep 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 --===============3619754868588408054== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUVCQ0FBZEZpRUVvVUx4V3U0L1dz MGRCK1h0Z3lwWTRnRXdZU0lGQW1LRnZpMEFDZ2tRZ3lwWTRnRXcKWVNKU3hoQUF0RExES2s5U05u VE12SGszRGk3L2lCeWQvM0d2ZmFlVHpLS0UwQ0VxblhMdVJha2hRZDRlcWNuNApuU3lnQUdPdFhn cXNmSHhMKzNJNE1HUHhxYkR6S0g4OFVxTW9UTEEzci9xODJ2Mk9KMGlrSVo2OCtZczlvVVdOCno3 YjQ3dGJiV08wSGdkQjF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