Fix a bashism in TestRunner.sh.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-07-28 18:41:03 +00:00
parent 8aa895b19a
commit 171f3dcff1

View File

@ -13,7 +13,7 @@
#
TESTPATH=`pwd`
SUBDIR=""
if test `dirname $1` == "." ; then
if test `dirname $1` = "." ; then
while test `basename $TESTPATH` != "test" -a ! -z "$TESTPATH" ; do
tmp=`basename $TESTPATH`
SUBDIR="$tmp/$SUBDIR"
@ -22,7 +22,7 @@ if test `dirname $1` == "." ; then
fi
for TESTFILE in "$@" ; do
if test `dirname $TESTFILE` == . ; then
if test `dirname $TESTFILE` = . ; then
if test -d "$TESTPATH" ; then
cd $TESTPATH
make check-one TESTONE="$SUBDIR$TESTFILE"