[tf2circle-ui-check] Print tf2circle's exitcode (#9128)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 22 Nov 2019 07:33:28 +0000 (16:33 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 22 Nov 2019 07:33:28 +0000 (16:33 +0900)
The current implementation shows the exitcode of the last "echo"
command, and thus it always print 0.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
compiler/tf2circle-ui-check/checkall.sh

index 5150e05..88c8808 100755 (executable)
@@ -35,10 +35,11 @@ while [[ $# -ne 0 ]]; do
   echo "---------------------------------------------------------"
   # Generate circle
   "${TF2CIRCLE_PATH}" "${INFO_FILE}" "${PB_FILE}" "${NAME}.circle"
+  EXITCODE=$?
   echo "---------------------------------------------------------"
 
   echo
-  echo "EXITCODE: $?"
+  echo "EXITCODE: ${EXITCODE}"
 
   echo "Running '${NAME}' - Done"
 done