Skip to content

Commit

Permalink
Fixing the code to move old results files; should only move files of …
Browse files Browse the repository at this point in the history
…the same type since each type of test calls this script individually.
  • Loading branch information
mkavulich committed Mar 10, 2017
1 parent 524caf7 commit 2006028
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/allCheck.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,17 @@ writeBitForBit()

mkdir -p ${TEST_DIR}/RESULTS/old

#Move old results into "old" directory to avoid confusion
OLD_RESULTS=`\ls ${TEST_DIR}/RESULTS/`
for oldr in $OLD_RESULTS; do
mv ${TEST_DIR}/RESULTS/$oldr ${TEST_DIR}/RESULTS/old/
done

# The ID string for this particular test; it is typically something like "wrf_<svn#>"
TEST_ID=`basename $TARFILE .tar`

#Move old results into "old" directory to avoid confusion
export OLD_RESULT_FILE=${TEST_DIR}/RESULTS/${TEST_ID}_${COMPILER_WTF}_${CONFIGURE_CHOICES}
export OLD_RESULT_FILE=`echo $OLD_RESULT_FILE | sed 's/ /_/g'`
OLD_RESULTS=`\ls ${OLD_RESULT_FILE}*`
for oldr in $OLD_RESULTS; do
mv $oldr ${TEST_DIR}/RESULTS/old/
done

# The path to the file containing a summary of all test results
#export SUMMARY_FILE=${TEST_DIR}/RESULTS/${TEST_ID}_${COMPILER_WTF}.`date +"%Y-%m-%d_%T"`
export SUMMARY_FILE=${TEST_DIR}/RESULTS/${TEST_ID}_${COMPILER_WTF}_${CONFIGURE_CHOICES}.`date +"%Y-%m-%d_%T"`
Expand Down

0 comments on commit 2006028

Please sign in to comment.