Skip to content

Commit

Permalink
Continue copying test results even when tests fail (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxiao0228 authored and ob committed Dec 17, 2019
1 parent f34ec1f commit 65d4dac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bptestrunner/bluepill_batch_test_runner.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ cp "$BLUEPILL_PATH" $BP_WORKING_FOLDER
echo "Running ./bluepill --test-plan-path "${BP_TEST_PLAN}" -o "outputs" ${CONFIG_ARG} ${TIME_ESTIMATE_ARG}"

cd $BP_WORKING_FOLDER
./bluepill --test-plan-path "${BP_TEST_PLAN}" -o "outputs" ${CONFIG_ARG} ${TIME_ESTIMATE_ARG}
RC=0
(./bluepill --test-plan-path "${BP_TEST_PLAN}" -o "outputs" ${CONFIG_ARG} ${TIME_ESTIMATE_ARG}) || RC=$?
# Move Bluepill output to bazel-testlogs
ditto "outputs" "$TEST_UNDECLARED_OUTPUTS_DIR/"
ditto "outputs" "$TEST_UNDECLARED_OUTPUTS_DIR"
rm -rf "outputs"
exit $RC

0 comments on commit 65d4dac

Please sign in to comment.