diff options
author | nelson%bolyard.com <devnull@localhost> | 2008-01-23 07:16:56 +0000 |
---|---|---|
committer | nelson%bolyard.com <devnull@localhost> | 2008-01-23 07:16:56 +0000 |
commit | bfd16159d4bb5394b5eb14841aece25ab9dec5f7 (patch) | |
tree | 6a66d145648de5e9d36c4142baaa9127fc20348b | |
parent | 3c81452d2364f2fbe52045f13f138ad4721e1dcc (diff) | |
download | nss-hg-bfd16159d4bb5394b5eb14841aece25ab9dec5f7.tar.gz |
Bug 402116 - incorrect use of tee command truncates output log file
r=julien.pierre, slavomir.katuscak
-rw-r--r-- | security/nss/tests/common/init.sh | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/security/nss/tests/common/init.sh b/security/nss/tests/common/init.sh index 1e434debe..aa03e5839 100644 --- a/security/nss/tests/common/init.sh +++ b/security/nss/tests/common/init.sh @@ -356,23 +356,24 @@ if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then html "<HR><BR>" html "<HTML><BODY>" - echo "********************************************" | tee ${LOGFILE} - echo " Platform: ${OBJDIR}" | tee ${LOGFILE} - echo " Results: ${HOST}.$version" | tee ${LOGFILE} - echo "********************************************" | tee ${LOGFILE} - echo "$BC_ACTION" | tee ${LOGFILE} - #if running remote side of the distributed stress test let the user know who it is... + echo "********************************************" | tee -a ${LOGFILE} + echo " Platform: ${OBJDIR}" | tee -a ${LOGFILE} + echo " Results: ${HOST}.$version" | tee -a ${LOGFILE} + echo "********************************************" | tee -a ${LOGFILE} + echo "$BC_ACTION" | tee -a ${LOGFILE} +#if running remote side of the distributed stress test +# let the user know who it is... elif [ -n "$DO_REM_ST" -a "$DO_REM_ST" = "TRUE" ] ; then - echo "********************************************" | tee ${LOGFILE} - echo " Platform: ${OBJDIR}" | tee ${LOGFILE} - echo " Results: ${HOST}.$version" | tee ${LOGFILE} - echo " remote side of distributed stress test " | tee ${LOGFILE} - echo " `uname -n -s`" | tee ${LOGFILE} - echo "********************************************" | tee ${LOGFILE} + echo "********************************************" | tee -a ${LOGFILE} + echo " Platform: ${OBJDIR}" | tee -a ${LOGFILE} + echo " Results: ${HOST}.$version" | tee -a ${LOGFILE} + echo " remote side of distributed stress test " | tee -a ${LOGFILE} + echo " `uname -n -s`" | tee -a ${LOGFILE} + echo "********************************************" | tee -a ${LOGFILE} fi - echo "$SCRIPTNAME init: Testing PATH $PATH against LIB $LD_LIBRARY_PATH" | - tee ${LOGFILE} + echo "$SCRIPTNAME init: Testing PATH $PATH against LIB $LD_LIBRARY_PATH" |\ + tee -a ${LOGFILE} KILL="kill" |