From df40801dff8bd5e6706fb47afab60e5442a7e518 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Sat, 12 Apr 2014 21:13:41 +0000 Subject: 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 --- utils/lit/utils/check-coverage | 4 ++-- utils/lit/utils/check-sdist | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/lit') diff --git a/utils/lit/utils/check-coverage b/utils/lit/utils/check-coverage index bb3d17e757..128e827f22 100755 --- a/utils/lit/utils/check-coverage +++ b/utils/lit/utils/check-coverage @@ -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 diff --git a/utils/lit/utils/check-sdist b/utils/lit/utils/check-sdist index 743a971fbe..f03266a168 100755 --- a/utils/lit/utils/check-sdist +++ b/utils/lit/utils/check-sdist @@ -1,6 +1,6 @@ #!/bin/sh -if [ $# == 1 ]; then +if [ $# = 1 ]; then cd $1 fi -- cgit v1.2.3