diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-12-26 08:36:37 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-12-26 08:36:37 (GMT) |
commit | f40a245ce239b9597efa815d70d1d9f005fbafdc (patch) | |
tree | d80f84b7a067f8ef634f0839d2d135d487d3e5eb /tools/misc/testh5repart.sh.in | |
parent | 840e04ab5f5ce7fa5d07a3c9187944c27f9534e9 (diff) | |
download | hdf5-f40a245ce239b9597efa815d70d1d9f005fbafdc.zip hdf5-f40a245ce239b9597efa815d70d1d9f005fbafdc.tar.gz hdf5-f40a245ce239b9597efa815d70d1d9f005fbafdc.tar.bz2 |
[svn-r18055] Bug fix: 1192
Description:
Fixed exit code (sometimes return code in Main) to follow the HDF5 standards.
Tested:
H5committested plus serial test in Jam.
Diffstat (limited to 'tools/misc/testh5repart.sh.in')
-rw-r--r-- | tools/misc/testh5repart.sh.in | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/misc/testh5repart.sh.in b/tools/misc/testh5repart.sh.in index 62c99d7..7d4e020 100644 --- a/tools/misc/testh5repart.sh.in +++ b/tools/misc/testh5repart.sh.in @@ -15,6 +15,10 @@ # # Tests for the h5repart tool +TESTNAME=h5repart +EXIT_SUCCESS=0 +EXIT_FAILURE=1 + REPART=h5repart # The tool name REPART_BIN=`pwd`/$REPART # The path of the tool binary @@ -100,14 +104,16 @@ TOOLTEST -m 20000 -family_to_sec2 family_file%05d.h5 $actual_dir/family_to_sec2. OUTPUTTEST echo -if test $nerrors -eq 0 ; then - echo "All $REPART tests passed." -fi - # Clean up output file if test -z "$HDF5_NOCLEANUP"; then cd $actual_dir rm -f fst_family*.h5 scd_family*.h5 family_to_sec2.h5 fi -exit $nerrors +if test $nerrors -eq 0 ; then + echo "All $TESTNAME tests passed." + exit $EXIT_SUCCESS +else + echo "$TESTNAME tests failed with $nerrors errors." + exit $EXIT_FAILURE +fi |