Deprecate paver arguments with '_' in them in favor of versions with '-'

This commit is contained in:
Calen Pennington
2016-06-22 16:34:24 -04:00
parent 206cedf55e
commit ef89c75b19
11 changed files with 88 additions and 46 deletions

View File

@@ -24,7 +24,7 @@ paver a11y_coverage
if [ "$RUN_PA11YCRAWLER" = "1" ]
then
echo "Running pa11ycrawler against test course..."
paver pa11ycrawler --fasttest --skip_clean --fetch-course --with-html
paver pa11ycrawler --fasttest --skip-clean --fetch-course --with-html
echo "Generating coverage report..."
paver pa11ycrawler_coverage

View File

@@ -37,11 +37,11 @@ if [ "$CIRCLE_NODE_TOTAL" == "1" ] ; then
echo "via the CircleCI UI and adjust scripts/circle-ci-tests.sh to match."
echo "Running tests for common/lib/ and pavelib/"
paver test_lib --with-flaky --cov_args="-p" || EXIT=1
paver test_lib --with-flaky --cov-args="-p" || EXIT=1
echo "Running python tests for Studio"
paver test_system -s cms --with-flaky --cov_args="-p" || EXIT=1
paver test_system -s cms --with-flaky --cov-args="-p" || EXIT=1
echo "Running python tests for lms"
paver test_system -s lms --with-flaky --cov_args="-p" || EXIT=1
paver test_system -s lms --with-flaky --cov-args="-p" || EXIT=1
exit $EXIT
else
@@ -74,15 +74,15 @@ else
;;
1) # run all of the lms unit tests
paver test_system -s lms --with-flaky --cov_args="-p"
paver test_system -s lms --with-flaky --cov-args="-p"
;;
2) # run all of the cms unit tests
paver test_system -s cms --with-flaky --cov_args="-p"
paver test_system -s cms --with-flaky --cov-args="-p"
;;
3) # run the commonlib unit tests
paver test_lib --with-flaky --cov_args="-p"
paver test_lib --with-flaky --cov-args="-p"
;;
*)

View File

@@ -99,7 +99,7 @@ case "$TEST_SUITE" in
;;
"lms-unit")
PAVER_ARGS="--with-flaky --processes=-1 --cov_args='-p' -v"
PAVER_ARGS="--with-flaky --processes=-1 --cov-args='-p' -v"
case "$SHARD" in
"all")
paver test_system -s lms $PAVER_ARGS
@@ -128,11 +128,11 @@ case "$TEST_SUITE" in
;;
"cms-unit")
paver test_system -s cms --with-flaky --cov_args="-p" -v
paver test_system -s cms --with-flaky --cov-args="-p" -v
;;
"commonlib-unit")
paver test_lib --with-flaky --cov_args="-p" -v
paver test_lib --with-flaky --cov-args="-p" -v
;;
"js-unit")
@@ -141,8 +141,8 @@ case "$TEST_SUITE" in
;;
"commonlib-js-unit")
paver test_js --coverage --skip_clean || { EXIT=1; }
paver test_lib --skip_clean --with-flaky --cov_args="-p" || { EXIT=1; }
paver test_js --coverage --skip-clean || { EXIT=1; }
paver test_lib --skip-clean --with-flaky --cov-args="-p" || { EXIT=1; }
# This is to ensure that the build status of the shard is properly set.
# Because we are running two paver commands in a row, we need to capture