forked from OSchip/llvm-project
Fix PR1355: Only compute the SUBPATH and TESTDIR once.
llvm-svn: 37108
This commit is contained in:
parent
95e2b7b59e
commit
99e813eee9
|
@ -11,8 +11,6 @@
|
|||
# This script is typically used by cd'ing to a test directory and then
|
||||
# running TestRunner.sh with a list of test file names you want to run.
|
||||
#
|
||||
for TESTFILE in "$@" ; do
|
||||
if test `dirname $TESTFILE` == . ; then
|
||||
TESTPATH=`pwd`
|
||||
SUBDIR=""
|
||||
while test `basename $TESTPATH` != "test" -a ! -z "$TESTPATH" ; do
|
||||
|
@ -20,9 +18,13 @@ for TESTFILE in "$@" ; do
|
|||
SUBDIR="$tmp/$SUBDIR"
|
||||
TESTPATH=`dirname $TESTPATH`
|
||||
done
|
||||
|
||||
for TESTFILE in "$@" ; do
|
||||
if test `dirname $TESTFILE` == . ; then
|
||||
if test -d "$TESTPATH" ; then
|
||||
cd $TESTPATH
|
||||
make check-one TESTONE="$SUBDIR$TESTFILE"
|
||||
cd $PWD
|
||||
else
|
||||
echo "Can't find llvm/test directory in " `pwd`
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue