Make run_tests.sh work with errexit
Since the new 'which' commands return an error exit status when they don't find anything, the run_tests.sh would fail, as it sets errexit at the beginning. This patch ignores the error exit status from the which commands. Change-Id: I208f675acaa6b8f5536ce1f259ceeabaa841e1bc
This commit is contained in:
parent
a2b628911d
commit
1c06a897ae
@ -80,9 +80,9 @@ manage=0
|
||||
# though using "python -m coverage" will fail in a
|
||||
# python 2.6 venv. Which is why we do what's below,
|
||||
# to make sure it works everywhere.
|
||||
COVERAGE_CMD=`which coverage`
|
||||
COVERAGE_CMD=`which coverage || true`
|
||||
if [ -z "${COVERAGE_CMD}" ] ; then
|
||||
COVERAGE_CMD=`which python-coverage`
|
||||
COVERAGE_CMD=`which python-coverage || true`
|
||||
fi
|
||||
if [ -z "${COVERAGE_CMD}" ] ; then
|
||||
COVERAGE_CMD="python -m coverage"
|
||||
|
Loading…
x
Reference in New Issue
Block a user