diff --git a/examples/run_examples.sh b/examples/run_examples.sh index c6c62b3d9fcdaf928729b131ea4feef10390800e..bfea101f10ff8036fe337017f67ecc8082e4312c 100755 --- a/examples/run_examples.sh +++ b/examples/run_examples.sh @@ -11,6 +11,10 @@ PROJECT_DIR=$(dirname $(cargo locate-project | awk -F\" '{print $4}')) EXIT_VAL=0 +# Some of the examples assume that the working directory is the project root +# and it never hurts to force consistency regardless +cd $PROJECT_DIR + function check_return_value { # Check number of parameters passed into the check function