Skip to content

Commit

Permalink
Handle directory context for test runner
Browse files Browse the repository at this point in the history
Toward #114.
  • Loading branch information
waldoj committed Jun 19, 2019
1 parent b88d48c commit c9e3fa0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/tests/run-all.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# Switch to the working directory from wherever this is being invoked
pushd .
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR" || exit

# Run the front-end tests
if ! ./front-end.sh; then
Expand All @@ -16,3 +20,6 @@ if [ "$ERRORED" == true ]; then
echo "Some tests failed"
exit 1
fi

# Switch back to the directory this was invoked from
popd || exit

0 comments on commit c9e3fa0

Please sign in to comment.