X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=run_tests.sh;h=d5c3059246fe4d856155a050ea03ccc7a8a5fc8d;hb=3e8bf0c0b273324d52970c7127d2be5e294e3aff;hp=093f7248313e529eef709a911ee8fe1ac8b45644;hpb=13e674358deed41a7734e7ef238f77349c2fb1e6;p=bottlenecks.git diff --git a/run_tests.sh b/run_tests.sh index 093f7248..d5c30592 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -78,13 +78,13 @@ function run_test(){ check_testcase -rubbos $i #adjust config parameters, different test suite has different methods, take rubbos as an example #run test case, different test suite has different methods - file={$BASEDIR}/testsuites/rubbos/testcase_cfg/{$i}.yaml + file=${BASEDIR}/testsuites/rubbos/testcase_cfg/${i}.yaml python /home/opnfv/bottlenecks/testsuites/rubbos/run_rubbos.py -c $file done ;; "vstf") info "Running vstf test suite" - test_file="/home/opnfv/bottlenecks/testsuite/vstf/testsuite_story/vstf_story1" + test_file="/home/opnfv/bottlenecks/testsuites/vstf/testsuite_story/vstf_story1" if [[ -f $test_file ]]; then testcases=($(cat $test_file)) else @@ -95,6 +95,8 @@ function run_test(){ check_testcase -vstf $i #adjust config parameters #run test case + file=${BASEDIR}/testsuites/vstf/testcase_cfg/${i}.yaml + python /home/opnfv/bottlenecks/testsuites/vstf/run_vstf.py -c $file done ;; esac @@ -138,6 +140,10 @@ if [ "${SUITE}" != "" ]; then info "Tests to execute: ${SUITE}" fi +# Source credentials +info "Sourcing Credentials openstack.creds to run the tests.." +source /home/opnfv/bottlenecks/config/openstack.creds + #run tests if [ "${SUITE}" != "" ]; then for i in "${suite_exec[@]}"; do