Skip to content
Snippets Groups Projects
Commit 83a01725 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix/suppress shellcheck errors in teardown.sh

Rationale: It's good to have all of our scripts pass shellcheck.
parent aa9e5515
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,15 @@ set -xe
cd "$(git rev-parse --show-toplevel)"
# Tell shellcheck that yes, we know that we're sourcing a file.
# shellcheck disable=SC1091
source tests/chutney/arti.run
# Tells shellcheck that these variables are set; exits early if they
# are not.
pid="${pid:?}"
target="${target:?}"
if [ -z "${CHUTNEY_PATH}" ]; then
# Use the default chutney path we set up before.
CHUTNEY_PATH="$(pwd)/chutney"
......@@ -23,5 +30,12 @@ tail --pid="$pid" -f /dev/null
"${CHUTNEY_PATH}/chutney" stop "${CHUTNEY_PATH}/$target"
# Tell shellcheck that yes, we know that we're sourcing a file.
# shellcheck disable=SC1091
source tests/chutney/arti.run
# As above, make sure this is defined. (It won't be defined until
# this point, so we can't check it earlier.)
result="${result:?}"
exit "$result"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment