Fixed a problem with AUTOTEST cleantest.sh script
In the case where there are no '.err' files, this script was deleting files it should not have. Fixed by adding a check that each .err file actually exists.
This commit is contained in:
parent
0fbc6fb651
commit
4db0e9dc9a
@ -36,8 +36,11 @@ if [ "x$1" = "x" ]
|
||||
then
|
||||
for i in *.err
|
||||
do
|
||||
testname=`basename $i .err`
|
||||
rm -fr $testname.???
|
||||
if [ -f $i ] # This check is important in the case that there are no .err files
|
||||
then
|
||||
testname=`basename $i .err`
|
||||
rm -fr $testname.???
|
||||
fi
|
||||
done
|
||||
else
|
||||
while [ "$*" ]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user