Commit 7676693f by Christine Lytwynec

Merge pull request #7188 from edx/clytwynec/TE-769

fix bok-choy reporting on failure
parents 119d761c 6c939979
...@@ -94,13 +94,13 @@ END ...@@ -94,13 +94,13 @@ END
"unit") "unit")
case "$SHARD" in case "$SHARD" in
"lms") "lms")
paver test_system -s lms --extra_args="--with-flaky" paver test_system -s lms --extra_args="--with-flaky" || { EXIT=1; }
paver coverage paver coverage
;; ;;
"cms-js-commonlib") "cms-js-commonlib")
paver test_system -s cms --extra_args="--with-flaky" paver test_system -s cms --extra_args="--with-flaky" || { EXIT=1; }
paver test_js --coverage --skip_clean paver test_js --coverage --skip_clean || { EXIT=1; }
paver test_lib --skip_clean --extra_args="--with-flaky" paver test_lib --skip_clean --extra_args="--with-flaky" || { EXIT=1; }
paver coverage paver coverage
;; ;;
*) *)
...@@ -108,6 +108,8 @@ END ...@@ -108,6 +108,8 @@ END
paver coverage paver coverage
;; ;;
esac esac
exit $EXIT
;; ;;
"lms-acceptance") "lms-acceptance")
...@@ -157,23 +159,23 @@ END ...@@ -157,23 +159,23 @@ END
case "$SHARD" in case "$SHARD" in
"all") "all")
paver test_bokchoy paver test_bokchoy || { EXIT=1; }
;; ;;
"1") "1")
paver test_bokchoy --extra_args="-a shard_1 --with-flaky" paver test_bokchoy --extra_args="-a shard_1 --with-flaky" || { EXIT=1; }
;; ;;
"2") "2")
paver test_bokchoy --extra_args="-a 'shard_2' --with-flaky" paver test_bokchoy --extra_args="-a 'shard_2' --with-flaky" || { EXIT=1; }
;; ;;
"3") "3")
paver test_bokchoy --extra_args="-a 'shard_3' --with-flaky" paver test_bokchoy --extra_args="-a 'shard_3' --with-flaky" || { EXIT=1; }
;; ;;
"4") "4")
paver test_bokchoy --extra_args="-a shard_1=False,shard_2=False,shard_3=False --with-flaky" paver test_bokchoy --extra_args="-a shard_1=False,shard_2=False,shard_3=False --with-flaky" || { EXIT=1; }
;; ;;
# Default case because if we later define another bok-choy shard on Jenkins # Default case because if we later define another bok-choy shard on Jenkins
...@@ -196,6 +198,15 @@ END ...@@ -196,6 +198,15 @@ END
END END
;; ;;
esac esac
# Move the reports to a directory that is unique to the shard
# so that when they are 'slurped' to the main flow job, they
# do not conflict with and overwrite reports from other shards.
mv reports/ reports_tmp/
mkdir -p reports/${TEST_SUITE}/${SHARD}
mv reports_tmp/* reports/${TEST_SUITE}/${SHARD}
rm -r reports_tmp/
exit $EXIT
;; ;;
esac esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment