summaryrefslogtreecommitdiffstats
path: root/runTags.sh
diff options
context:
space:
mode:
authorjf9860 <jf9860@att.com>2017-03-02 16:35:04 -0500
committerjf9860 <jf9860@att.com>2017-03-02 16:35:21 -0500
commit1aa4c9d67e0cda753f02ab70f523018ca95e84fd (patch)
treeb25b8e36534179bac206fb93a0bdd144e6712cf3 /runTags.sh
parent3b22a2d4f52f24e0984bb4d712a4cafd83d06d7b (diff)
Make teardown of dummy vf_module conditional
Try fix for chromedriver hanging Change demo APPC command to send private oam IP Change-Id: I86a9c1fe489dd63721b542132516bc7285baf12a Signed-off-by: jf9860 <jf9860@att.com>
Diffstat (limited to 'runTags.sh')
-rw-r--r--runTags.sh29
1 files changed, 16 insertions, 13 deletions
diff --git a/runTags.sh b/runTags.sh
index 75b792e7..29d76fcd 100644
--- a/runTags.sh
+++ b/runTags.sh
@@ -8,6 +8,9 @@ DEFAULT_ROBOT_TEST="-i health"
INSTALL_NAME="OpenECOMP_ETE"
DEFAULT_OUTPUT_FOLDER=./
+# To mitigate the chromedriver hanging issue
+export DBUS_SESSION_BUS_ADDRESS=/dev/null
+
# Use default if none specified as env var
LOG_LEVEL=${LOG_LEVEL:-$DEFAULT_LOG_LEVEL}
RES=${RES:-$DEFAULT_RES}
@@ -23,45 +26,45 @@ if [ $# -eq 1 ]; then
ROBOT_TAGS="-i $1"
fi
-##
-## if more than 1 tag is supplied, the must be provided with -i or -e
+##
+## if more than 1 tag is supplied, the must be provided with -i or -e
##
while [ $# -gt 1 ]
do
key="$1"
-
+
case $key in
-i|--include)
ROBOT_TAGS="${ROBOT_TAGS} -i $2"
- shift
+ shift
;;
-e|--exclude)
ROBOT_TAGS="${ROBOT_TAGS} -e $2"
- shift
+ shift
;;
-d|--outputdir)
OUTPUT_FOLDER=$2
shift
- ;;
+ ;;
--display)
DISPLAY=:$2
- shift
+ shift
;;
-V)
VARIABLEFILES="${VARIABLEFILES} -V $2 "
- shift
+ shift
;;
-v)
VARIABLES="${VARIABLES} -v $2 "
- shift
+ shift
;;
esac
shift
-done
+done
if [ "${ROBOT_TAGS}" = "" ];then
ROBOT_TAGS=$DEFAULT_ROBOT_TEST
-fi
+fi
# Start Xvfb
echo -e "Starting Xvfb on display ${DISPLAY} with res ${RES}"
@@ -81,8 +84,8 @@ python -m robot.run -L ${LOG_LEVEL} -d ${OUTPUT_FOLDER} ${VARIABLEFILES} ${VARIA
# Stop Xvfb we started earlier
# select it from list of possible Xvfb pids running because
-# a) there may be multiple Xvfbs running and
-# b) the XVFBPID may not be the correct if the start did not actually work (unlikely and that may be)
+# a) there may be multiple Xvfbs running and
+# b) the XVFBPID may not be the correct if the start did not actually work (unlikely and that may be)
PIDS=$(pgrep Xvfb)
for P in $PIDS
do