osmo-gsm-tester: Print colored run output succes/failure

This way one can quickly see if osmo-gsm-tester run fine or an issue
ocurred and logs need to be checked.

Change-Id: I0b267889f403fc1505f9dd859568bc15a120dd81
This commit is contained in:
Pau Espin 2020-03-20 19:12:02 +01:00
parent 8e8f671711
commit 52be9c2e40
1 changed files with 10 additions and 0 deletions

View File

@ -96,9 +96,19 @@ docker run --rm \
-e "HOST_GROUP_ID=$(id -g)" \
--name ${BUILD_TAG}-ogt-master \
$REPO_USER/osmo-gsm-tester
rc=$?
echo Stopping containers
docker container kill ${BUILD_TAG}-ogt-slave
network_remove
collect_logs
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
if [ $rc -eq 0 ]; then
echo -e "${GREEN}SUCCESS${NC}"
else
echo -e "${RED}FAILED ($rc)${NC}"
fi