From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 3/3] tests: Don't check exit code for every command in demo mode Date: Thu, 19 May 2022 01:28:29 +0200 Message-ID: <20220518232829.2775820-4-sbrivio@redhat.com> In-Reply-To: <20220518232829.2775820-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3627149652705325008==" --===============3627149652705325008== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Having all those 'echo $?' is rather distracting in demos. Signed-off-by: Sefano Brivio --- 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 -- 2.35.1 --===============3627149652705325008==--