File: btest-diff-rst

package info (click to toggle)
btest 0.72-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,208 kB
  • sloc: python: 2,187; sh: 547; makefile: 165; xml: 12; awk: 1
file content (15 lines) | stat: -rwxr-xr-x 426 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /usr/bin/env bash
#
# A finalizer to diff the output generated by one of the other btest-rst-*
# commands. This does nothing if we're running from inside Sphinx.

# btest-rst-cmd generates these files if run from inside btest (but not Sphinx).

if [ "$BTEST_RST_OUTPUT" != "" ]; then
    exit 0
fi

while IFS= read -r -d '' output; do
    echo "$(pwd)/$output"
    btest-diff "$output"
done < <(find btest-"${TEST_NAME}"*)