Skip to content

Commit

Permalink
Ensure successful cargo build before updating repl-tests
Browse files Browse the repository at this point in the history
Otherwise you might run old code because you forgot to compile the
debug build.
  • Loading branch information
Damienkatz committed May 21, 2017
1 parent 4da9a3f commit 7002e55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion update-test-repl.sh
Expand Up @@ -6,7 +6,11 @@ DIRNAME="$(dirname ${SCRIPTPATH})"

NOISE="${DIRNAME}/target/debug/noise_search"
REPL_TEST_DIR="${DIRNAME}/repl-tests"

cargo build
exit_status=$?
if [ $exit_status -ne 0 ]; then
exit $exit_status
fi
if [[ ! -f "${NOISE}" ]]; then
echo "Can't find noise binary, looked at ${NOISE}"
exit 1
Expand Down

0 comments on commit 7002e55

Please sign in to comment.