check_suite="$1"
case $check_suite in
"-rubbos")
- $SUITE_PREFIX=$SUITE_PREFIX_CONFIG/rubbos/testcase_cfg
+ SUITE_PREFIX=$SUITE_PREFIX_CONFIG/rubbos/testcase_cfg
;;
"-vstf")
- $SUITE_PREFIX=$SUITE_PREFIX_CONFIG/vstf/testcase_cfg
+ SUITE_PREFIX=$SUITE_PREFIX_CONFIG/vstf/testcase_cfg
;;
esac
if [ "${TEST_CASE}" != "" ]; then
testcase_exec=(${TEST_CASE// /})
for i in "${testcase_exec[@]}"; do
- if [[ " ${all_test_cases[*]} " != *" $i "* ]]; then
+ if [[ " ${all_testcases[*]} " != *" $i "* ]]; then
error "unknown test case: $i. available test cases are: ${all_test_cases[@]}"
fi
done
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
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