Skip to content
Snippets Groups Projects
Commit 4366cb1f authored by Scott Snyder's avatar Scott Snyder Committed by Walter Lampl
Browse files

HDF5Utils: Remove unneeded outputs.

HDF5Utils: Remove unneeded outputs.

Successful tests should not print extraneous output.
parent 9b24161c
No related merge requests found
......@@ -5,9 +5,7 @@ set -eu
TMP=$(mktemp)
h5dump -o $TMP -y -d '4d[0,1,2,3,4]' output.h5 > /dev/null
EIGHTY_SIX=$(cat $TMP | xargs | paste -s | cut -d , -f 2)
if (( $EIGHTY_SIX == 86 )); then
echo "test magic number is correct!"
else
if (( $EIGHTY_SIX != 86 )); then
echo "test magic number is incorrect ($EIGHTY_SIX != 86)"
exit 1
fi
......@@ -7,7 +7,7 @@ function check() {
h5dump -o $TMP -y -d $1 hists.h5 > /dev/null
local NUMBER=$(cat $TMP | xargs )
if [[ $NUMBER == $2 ]]; then
echo "number in $1 is correct! ($NUMBER)"
true #echo "number in $1 is correct! ($NUMBER)"
else
echo "test magic number is incorrect ($NUMBER != $2)"
return 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment