diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-01-19 16:55:15 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-01-19 16:55:15 -0800 |
commit | 16038805de5da569592d3c951b3ca64973b0108a (patch) | |
tree | 3a80dd6814ecc9caf910ff51b96ee2d41e61e072 | |
parent | 15757efcf323bf2658999104669757922e50893f (diff) |
Have run-healthcheck.sh return robot test result
Change-Id: I6a1bcb640dd29cfaf0bf021ad844b684efaacc45
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rwxr-xr-x | test/ete/scripts/run-healthcheck.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ete/scripts/run-healthcheck.sh b/test/ete/scripts/run-healthcheck.sh index 2f0f014d3..c86fd453a 100755 --- a/test/ete/scripts/run-healthcheck.sh +++ b/test/ete/scripts/run-healthcheck.sh @@ -20,7 +20,9 @@ fi ssh-keygen -R ${ROBOT_IP} ssh -o StrictHostKeychecking=no -i ${SSH_KEY} root@${ROBOT_IP} "OS_PROJECT_ID=$OS_PROJECT_ID OS_USERNAME=$OS_USERNAME OS_PASSWORD=$OS_PASSWORD bash -s" < ./remote/run-robot.sh +RESULT=$? LOG_DIR=$(ssh -o StrictHostKeychecking=no -i ${SSH_KEY} root@${ROBOT_IP} "ls -1t /opt/eteshare/logs | head -1") echo "Browse Robot results at http://${ROBOT_IP}:88/logs/${LOG_DIR}/" rsync -e "ssh -i ${SSH_KEY}" -avPz root@${ROBOT_IP}:/opt/eteshare/logs/${LOG_DIR}/ $WORKSPACE/archives/ +exit $RESULT |