diff --git a/barretenberg/cpp/.rebuild_patterns b/barretenberg/cpp/.rebuild_patterns index 0c13870647a..b93cb68742e 100644 --- a/barretenberg/cpp/.rebuild_patterns +++ b/barretenberg/cpp/.rebuild_patterns @@ -1,3 +1,4 @@ ^barretenberg/.*\\.(cpp|cc|cxx|c\\+\\+|h|hpp|hxx|h\\+\\+|c|h|inl|inc|ipp|tpp|cmake)$ ^barretenberg/.*CMakeLists\\.txt$ -^barretenberg/.*Dockerfile.*$ \ No newline at end of file +^barretenberg/.*Dockerfile.*$ +^barretenberg/scripts/ \ No newline at end of file diff --git a/barretenberg/cpp/scripts/run_tests b/barretenberg/cpp/scripts/run_tests index 8c4ed35047e..28d9f8cc4f8 100755 --- a/barretenberg/cpp/scripts/run_tests +++ b/barretenberg/cpp/scripts/run_tests @@ -20,7 +20,8 @@ IMAGE_URI=$(calculate_image_uri $REPOSITORY) retry docker pull $IMAGE_URI # If there is a file in the scripts directory named $TESTS, those are the tests to run. -if [ -f "$(query_manifest projectDir $REPOSITORY)/scripts/$TESTS" ]; then +cd $(query_manifest projectDir $REPOSITORY)/scripts +if [ -f "$TESTS" ]; then TESTS=$(cat $TESTS | tr '\n' ' ') fi