aboutgitcodebugslistschat
path: root/test/lib/term
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-05-19 01:24:47 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-05-19 15:24:22 +0200
commit3d4c2a44a69bba90f3ca70ba998b92ce892bbcd8 (patch)
tree4e69967418a8528ef17a972686ebac0286d55e7c /test/lib/term
parentfe536d78bada50c9610a74f96a272379a5223ff1 (diff)
downloadpasst-3d4c2a44a69bba90f3ca70ba998b92ce892bbcd8.tar
passt-3d4c2a44a69bba90f3ca70ba998b92ce892bbcd8.tar.gz
passt-3d4c2a44a69bba90f3ca70ba998b92ce892bbcd8.tar.bz2
passt-3d4c2a44a69bba90f3ca70ba998b92ce892bbcd8.tar.lz
passt-3d4c2a44a69bba90f3ca70ba998b92ce892bbcd8.tar.xz
passt-3d4c2a44a69bba90f3ca70ba998b92ce892bbcd8.tar.zst
passt-3d4c2a44a69bba90f3ca70ba998b92ce892bbcd8.zip
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>
Diffstat (limited to 'test/lib/term')
-rwxr-xr-xtest/lib/term3
1 files changed, 3 insertions, 0 deletions
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