[svn-r29513] Only delete the copied and generated test files.

This commit is contained in:
Allen Byrne
2016-03-22 12:55:45 -05:00
parent 98e315ffff
commit 07b2f73506
4 changed files with 8 additions and 40 deletions

View File

@@ -156,16 +156,8 @@ COPY_DATAFILES_TO_BLDDIR()
CLEAN_DATAFILES_AND_BLDDIR()
{
# skip rm if srcdir is same as destdir
# this occurs when build/test performed in source dir and
# make cp fail
SDIR=`$DIRNAME $HDFTEST_HOME/../testfiles/examples.datatypes.H5Ex_T_Array.txt`
INODE_SDIR=`$LS -i -d $SDIR | $AWK -F' ' '{print $1}'`
INODE_DDIR=`$LS -i -d $BLDDIR | $AWK -F' ' '{print $1}'`
if [ "$INODE_SDIR" != "$INODE_DDIR" ]; then
$RM $BLDDIR/*.txt
$RM $BLDDIR/*.out
fi
$RM $BLDDIR/examples.datatypes.H5Ex_T_*.txt
$RM $BLDDIR/H5Ex_T_*.out
}
# Print a line-line message left justified in a field of 70 characters