From: cgeoffroy Date: Tue, 11 Apr 2017 08:58:53 +0000 (+0200) Subject: Print the containernet cli logs when a pattern is missing X-Git-Tag: v3.1~34^2~6 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fvim-emu.git;a=commitdiff_plain;h=0412c6265c44cec2ce3a9916081227a4047e865b Print the containernet cli logs when a pattern is missing --- diff --git a/utils/ci/check_manual_usage_example.sh b/utils/ci/check_manual_usage_example.sh index 0c5c32b..e2b1597 100755 --- a/utils/ci/check_manual_usage_example.sh +++ b/utils/ci/check_manual_usage_example.sh @@ -21,9 +21,14 @@ W() { sleep 0.5s done EOF - timeout -k 3s ${T} ${SUBF} "${1}" - local RES=$? + local RES=0 + timeout -k 3s ${T} ${SUBF} "${1}" || RES=$? rm -f ${SUBF} + if [ ! "$RES" = "0" ]; then + sync + printheader "(Debug) Error while waiting for a pattern to appear in screenlog.0" + strings screenlog.0 + fi return ${RES} }