tests: Don't check exit code for every command in demo mode

Having all those 'echo $?' is rather distracting in demos.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Sefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-05-19 01:24:47 +02:00
parent fe536d78ba
commit 3d4c2a44a6

View file

@ -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