Return robot error code from runTags.sh 27/19827/1
authorGary Wu <gary.i.wu@huawei.com>
Thu, 19 Oct 2017 22:15:17 +0000 (15:15 -0700)
committerGary Wu <gary.i.wu@huawei.com>
Thu, 19 Oct 2017 22:15:17 +0000 (15:15 -0700)
This allows us to call this from Jenkins and
retrieve the test result code.

Change-Id: I6f6fb6edefaf2b3ec40d424ce3437a710fc1a318
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
runTags.sh

index e8a00b7..08ffe53 100644 (file)
@@ -86,6 +86,7 @@ ROBOT_LIBS=./robot/library:./robot/library/eteutils:./robot/library/heatbridge
 
 cd /var/opt/${INSTALL_NAME}
 python -m robot.run -L ${LOG_LEVEL} -d ${OUTPUT_FOLDER} ${VARIABLEFILES} ${VARIABLES} ${LISTENERS} -P ${ROBOT_LIBS} ${ROBOT_TAGS} $(pwd)
+RET_CODE=$?
 
 # Stop Xvfb we started earlier
 # select it from list of possible Xvfb pids running because
@@ -98,3 +99,5 @@ do
                kill -9 $P
        fi
 done
+
+exit $RET_CODE