summaryrefslogtreecommitdiffstats
path: root/tools/testh5dump.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testh5dump.sh')
-rwxr-xr-xtools/testh5dump.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/testh5dump.sh b/tools/testh5dump.sh
index e9c8d86..af2d26d 100755
--- a/tools/testh5dump.sh
+++ b/tools/testh5dump.sh
@@ -19,7 +19,7 @@ if test -z "$srcdir"; then
srcdir=.
fi
-mkdir testfiles >/dev/null 2>&1
+test -d testfiles || mkdir testfiles
# Print a line-line message left justified in a field of 70 characters
# beginning with the word "Testing".
@@ -50,8 +50,8 @@ TOOLTEST() {
echo "Expected output for '$DUMPER $@'"
echo "#############################"
cd $srcdir/testfiles
- $RUNSERIAL $DUMPER_BIN "$@" 2>&1
- ) >$actual
+ $RUNSERIAL $DUMPER_BIN "$@"
+ ) >$actual 2>&1
if $CMP $expect $actual; then
echo " PASSED"