sphinx/btest-diff-rst
raw| 1 | #! /usr/bin/env bash |
| 2 | # |
| 3 | # A finalizer to diff the output generated by one of the other btest-rst-* |
| 4 | # commands. This does nothing if we're running from inside Sphinx. |
| 5 | |
| 6 | # btest-rst-cmd generates these files if run from inside btest (but not Sphinx). |
| 7 | |
| 8 | if [ "$BTEST_RST_OUTPUT" != "" ]; then |
| 9 | exit 0 |
| 10 | fi |
| 11 | |
| 12 | while IFS= read -r -d '' output; do |
| 13 | echo "$(pwd)/$output" |
| 14 | btest-diff "$output" |
| 15 | done < <(find btest-"${TEST_NAME}"*) |