summaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ODL/CI
diff options
context:
space:
mode:
authorPeter Bandzi <pbandzi@cisco.com>2015-05-22 09:56:28 +0200
committerPeter Bandzi <pbandzi@cisco.com>2015-05-22 09:56:28 +0200
commitf3ee465228638b552ed7c761093f167a47581853 (patch)
tree275e1ddc4e7f8a820a08a2e77df1b8be1c0cdc3c /testcases/Controllers/ODL/CI
parent71f3b45b900fd1e4ae27324f34b4fa28d5f76bf7 (diff)
Add $BASEDIR var to all paths
JIRA: FUNCTES-5 Change-Id: Ie5ea097bc3ef8570bac4d3a310262560b2c59199 Signed-off-by: Peter Bandzi <pbandzi@cisco.com>
Diffstat (limited to 'testcases/Controllers/ODL/CI')
-rwxr-xr-xtestcases/Controllers/ODL/CI/start_tests.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/testcases/Controllers/ODL/CI/start_tests.sh b/testcases/Controllers/ODL/CI/start_tests.sh
index c2e2c325e..f4980502b 100755
--- a/testcases/Controllers/ODL/CI/start_tests.sh
+++ b/testcases/Controllers/ODL/CI/start_tests.sh
@@ -21,7 +21,7 @@ where:
value new value for var
example:
- OSTACK_IP=oscontro1 ODL_PORT=8080 bash $(basename "$0")"
+ ODL_IP=oscontro1 ODL_PORT=8080 bash $(basename "$0")"
while getopts ':h' option; do
case "$option" in
@@ -46,17 +46,17 @@ NEUTRON_IP=${NEUTRON_IP:-192.168.0.68}
set +x
echo -e "${green}Cloning ODL integration git repo.${nc}"
-if [ -d integration ]; then
- cd integration
+if [ -d ${BASEDIR}/integration ]; then
+ cd ${BASEDIR}/integration
git checkout -- .
git pull
cd -
else
- git clone https://github.com/opendaylight/integration.git
+ git clone https://github.com/opendaylight/integration.git ${BASEDIR}/integration
fi
# Change openstack password for admin tenant in neutron suite
-sed -i "s/\"password\": \"admin\"/\"password\": \"${PASS}\"/" integration/test/csit/suites/openstack/neutron/__init__.robot
+sed -i "s/\"password\": \"admin\"/\"password\": \"${PASS}\"/" ${BASEDIR}/integration/test/csit/suites/openstack/neutron/__init__.robot
if source $BASEDIR/venv/bin/activate; then
echo -e "${green}Python virtualenv activated.${nc}"
@@ -81,7 +81,7 @@ do
[[ -z "${line}" ]] && continue
echo -e "${light_green}Starting test: $line ${nc}"
- pybot -v OPENSTACK:${NEUTRON_IP} -v PORT:${ODL_PORT} -v CONTROLLER:${ODL_IP} $line
+ pybot -v OPENSTACK:${NEUTRON_IP} -v PORT:${ODL_PORT} -v CONTROLLER:${ODL_IP} ${BASEDIR}/$line
mkdir -p $BASEDIR/logs/${test_num}
mv log.html $BASEDIR/logs/${test_num}/
mv report.html $BASEDIR/logs/${test_num}/