218ee6bcce
unit_tests.sh has a lot of duplicated statements. This commits introduces run_test function to clarify the differences. selenium_tests.sh is also updated to clarify which positional arguments are used. Direct usage of $1, $2 is not easy to understand. Change-Id: Ie13f0a804968d548b3c13b0d87daa745dd2ad040
8 lines
288 B
Bash
Executable File
8 lines
288 B
Bash
Executable File
ROOT=$1
|
|
|
|
report_args="--junitxml=$ROOT/test_reports/selenium_test_results.xml"
|
|
report_args+=" --html=$ROOT/test_reports/selenium_test_results.html"
|
|
report_args+=" --self-contained-html"
|
|
|
|
pytest $ROOT/openstack_dashboard/ --ds=openstack_dashboard.test.settings -v -m selenium $report_args
|