From 3973e464e08af6e47f2219988b4604eef53b76b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Wed, 31 Oct 2018 16:36:44 +0900 Subject: [PATCH] [enco] Show failed tests (#2057) This commit revises "runall" to show the list of failed tests. Signed-off-by: Jonghyun Park --- contrib/enco/test/caffe/runall | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/enco/test/caffe/runall b/contrib/enco/test/caffe/runall index 592697c..09e3129 100755 --- a/contrib/enco/test/caffe/runall +++ b/contrib/enco/test/caffe/runall @@ -21,6 +21,7 @@ echo "-- Found workdir: ${WORKDIR}" TESTED=() PASSED=() +FAILED=() pushd "${WORKDIR}" while [[ $# -ne 0 ]]; do @@ -53,12 +54,18 @@ while [[ $# -ne 0 ]]; do if [[ $? -eq 0 ]]; then PASSED+=("$PREFIX") + else + FAILED+=("$PREFIX") fi done popd if [[ ${#TESTED[@]} -ne ${#PASSED[@]} ]]; then echo "FAILED" + for TEST in "${FAILED[@]}" + do + echo "- ${TEST}" + done exit 255 fi -- 2.7.4