Fix test syntax to work with non-bash /bin/sh.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Joerg Sonnenberger 2014-04-12 21:13:41 +00:00
parent 2c2ba4c605
commit df40801dff
2 changed files with 3 additions and 3 deletions

View File

@ -9,13 +9,13 @@ if [ ! -f setup.py ] || [ ! -d lit ]; then
fi
# Parse command line arguments.
if [ "$1" == "--generate-html" ]; then
if [ "$1" = "--generate-html" ]; then
GENERATE_HTML=1
shift
fi
# If invoked with no arguments, run all the tests.
if [ $# == "0" ]; then
if [ $# = "0" ]; then
set -- "tests"
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh
if [ $# == 1 ]; then
if [ $# = 1 ]; then
cd $1
fi