Skip to content

Commit

Permalink
more diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyle committed Feb 21, 2024
1 parent 0e9ef3b commit 69fe6a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/run_doctests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# so this script works by checking the output of the test command.
# Although this is not robust, it is far simpler than the alternative.

set +e

OUTPUT=$(cargo test --workspace --doc 2>&1)
RETURN_CODE=$?

Expand All @@ -24,5 +22,6 @@ if [[ $OUTPUT =~ "error: no library targets found in packages" ]]; then
echo "Detected 'no library targets' error, which is being suppressed"
exit 0
else
echo "Command executed with code " $RETURN_CODE
exit $RETURN_CODE
fi

0 comments on commit 69fe6a0

Please sign in to comment.