cd ${DOC_DIR}
chmod +x ./run_cpta.sh
-./run_cpta.sh
-retval=$?
+STATUS=$(./run_cpta.sh | tail -1)
cd ${WORKSPACE}
cd -
-
-if [ ${retval} -ne "0" ]; then
- echo "FAIL"
+if [ ${STATUS} == "PASS" ]; then
+ exit 0
+else
+ exit 1
fi
-exit ${retval}
\ No newline at end of file