diff options
Diffstat (limited to 'tools/h5copy/testh5copy.sh')
-rw-r--r-- | tools/h5copy/testh5copy.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/h5copy/testh5copy.sh b/tools/h5copy/testh5copy.sh index a905148..4106fe0 100644 --- a/tools/h5copy/testh5copy.sh +++ b/tools/h5copy/testh5copy.sh @@ -63,7 +63,7 @@ VERIFY() VERIFY_H5LS() { SPACES=" " - echo "Verifying h5diff file structure $* $SPACES" | cut -c1-70 | tr -d '\012' + echo "Verifying h5ls file structure $* $SPACES" | cut -c1-70 | tr -d '\012' } # Run a test and print PASS or *FAIL*. If h5copy can complete @@ -137,17 +137,16 @@ H5LSTEST() { expect="$srcdir/../testfiles/`basename $1 .h5`.ls" actual="../testfiles/`basename $1 .h5`.out" - actual_err="../testfiles/`basename $1 .h5`.err" + # Stderr is included in stdout so that the diff can detect + # any unexpected output from that stream too. VERIFY_H5LS $@ - - ( + ( echo "#############################" echo "Expected output for '$H5LS $@'" echo "#############################" $RUNSERIAL $H5LS_BIN $H5LS_ARGS $@ - ) >$actual 2>$actual_err - cat $actual_err >> $actual + ) 2>&1 >$actual if [ ! -f $expect ]; then |