[enco] Show failed tests (#2057)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 31 Oct 2018 07:36:44 +0000 (16:36 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 31 Oct 2018 07:36:44 +0000 (16:36 +0900)
This commit revises "runall" to show the list of failed tests.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/test/caffe/runall

index 592697c..09e3129 100755 (executable)
@@ -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