diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-04-05 16:55:27 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-04-05 16:55:27 (GMT) |
commit | 2f2e652655b7aede457293947ec924c6a0c8b161 (patch) | |
tree | 70cbc1cce2db6331a01bc03afc6594eb4fe9e96a /bin | |
parent | 50a248d644860bae3d951187c8b0c5127044904f (diff) | |
download | hdf5-2f2e652655b7aede457293947ec924c6a0c8b161.zip hdf5-2f2e652655b7aede457293947ec924c6a0c8b161.tar.gz hdf5-2f2e652655b7aede457293947ec924c6a0c8b161.tar.bz2 |
[svn-r10539] Purpose:
Bug fix
Description:
When chkmanifest failed, output is not dumped to failed detail section
and people tend to ignore it.
Solution:
Buffer the output of chkmanifest in a file and dump it to failed detail
section if it fails. Else, just output to standout.
Platforms tested:
Tested by hand in heping.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/runtest | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/bin/runtest b/bin/runtest index 2b8b107..7138197 100755 --- a/bin/runtest +++ b/bin/runtest @@ -647,6 +647,7 @@ DIFFLOG=${LOGDIR}/DIFF_LOG_${TODAY} # Snap Test hosts and Configuration files ALLHOSTSFILE=${SNAPYARD}/allhostfile SNAPTESTCFG=${SNAPYARD}/snaptest.cfg +TMPFILE="/tmp/#runtest.${TODAY}.$$" # more processing of setup option if requested if test x-$CMD = x-setup; then @@ -716,12 +717,25 @@ if [ -z "$NOCVS" ]; then exit $errcode fi PRINT Checking MAINFEST file ... - (cd $SNAPYARD/current; bin/chkmanifest) + (cd $SNAPYARD/current; bin/chkmanifest) > $TMPFILE 2>&1 errcode=$? - if [ $errcode -ne 0 ]; then + if [ $errcode -eq 0 ]; then + # test passed. + cat $TMPFILE + else # test failed. REPORT_ERR "****FAILED ${HOSTNAME}: MANIFEST check****" + ( echo ========================= + echo "MANIFEST checking failed output" + echo ========================= + cat $TMPFILE + echo ========================= + echo "MANIFEST checking failed output done" + echo ========================= + echo "" + ) >> $FAILEDDETAIL fi + rm $TMPFILE PRINT_BLANK else # make sure the cvs update, if done by another host, has completed. |