From 12eb2fbc89d1d5f3301860260aba18f1e71e1be3 Mon Sep 17 00:00:00 2001 From: Charlie Lye Date: Mon, 25 Sep 2023 09:08:47 +0000 Subject: [PATCH 1/2] Fix working dir. --- barretenberg/cpp/scripts/run_tests | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From f3df7bdcb510e135c3fa51b3488234dfa6cbea26 Mon Sep 17 00:00:00 2001 From: Charlie Lye Date: Mon, 25 Sep 2023 09:21:53 +0000 Subject: [PATCH 2/2] Add scripts folder to rebuild patterns. --- barretenberg/cpp/.rebuild_patterns | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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