diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-02-27 14:10:02 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-02-29 15:06:23 +0100 |
commit | a0e21b45baac40462089d7b80faa33ebabe7b010 (patch) | |
tree | 8334b0536530deb61d04712cda4419663e6cc7ac | |
parent | 9c08c27b168320cb2fa9e80fe0c7e09f8a5b1952 (diff) | |
download | justbuild-a0e21b45baac40462089d7b80faa33ebabe7b010.tar.gz |
end-to-end: Print envariables in all just serve tests
...to help with debugging.
20 files changed, 41 insertions, 1 deletions
diff --git a/test/end-to-end/serve-service/describe.sh b/test/end-to-end/serve-service/describe.sh index f731ce8c..3255e9c7 100644 --- a/test/end-to-end/serve-service/describe.sh +++ b/test/end-to-end/serve-service/describe.sh @@ -15,6 +15,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly LBR1="${TEST_TMPDIR}/local-build-root-1" diff --git a/test/end-to-end/serve-service/serve-archive-root/resolved-absent-known-upload.sh b/test/end-to-end/serve-service/serve-archive-root/resolved-absent-known-upload.sh index d5cbd61d..502aaecb 100644 --- a/test/end-to-end/serve-service/serve-archive-root/resolved-absent-known-upload.sh +++ b/test/end-to-end/serve-service/serve-archive-root/resolved-absent-known-upload.sh @@ -26,6 +26,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-archive-root/resolved-absent-known.sh b/test/end-to-end/serve-service/serve-archive-root/resolved-absent-known.sh index b6b65cc5..b882bc2d 100644 --- a/test/end-to-end/serve-service/serve-archive-root/resolved-absent-known.sh +++ b/test/end-to-end/serve-service/serve-archive-root/resolved-absent-known.sh @@ -26,6 +26,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-archive-root/resolved-absent.sh b/test/end-to-end/serve-service/serve-archive-root/resolved-absent.sh index 7bb5d882..07568390 100644 --- a/test/end-to-end/serve-service/serve-archive-root/resolved-absent.sh +++ b/test/end-to-end/serve-service/serve-archive-root/resolved-absent.sh @@ -24,6 +24,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-archive-root/resolved-present.sh b/test/end-to-end/serve-service/serve-archive-root/resolved-present.sh index ec234e26..d2ecf13c 100644 --- a/test/end-to-end/serve-service/serve-archive-root/resolved-present.sh +++ b/test/end-to-end/serve-service/serve-archive-root/resolved-present.sh @@ -26,6 +26,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known-upload.sh b/test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known-upload.sh index fe5f3d59..c27c8066 100644 --- a/test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known-upload.sh +++ b/test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known-upload.sh @@ -25,6 +25,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known.sh b/test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known.sh index b0d912fa..8be8aa0f 100644 --- a/test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known.sh +++ b/test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known.sh @@ -25,6 +25,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-archive-root/unresolved-absent.sh b/test/end-to-end/serve-service/serve-archive-root/unresolved-absent.sh index 02f355fe..e304c9f2 100644 --- a/test/end-to-end/serve-service/serve-archive-root/unresolved-absent.sh +++ b/test/end-to-end/serve-service/serve-archive-root/unresolved-absent.sh @@ -23,6 +23,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-archive-root/unresolved-present.sh b/test/end-to-end/serve-service/serve-archive-root/unresolved-present.sh index abb00eba..e25a72bf 100644 --- a/test/end-to-end/serve-service/serve-archive-root/unresolved-present.sh +++ b/test/end-to-end/serve-service/serve-archive-root/unresolved-present.sh @@ -25,6 +25,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-distdir-root/absent.sh b/test/end-to-end/serve-service/serve-distdir-root/absent.sh index aac756b3..241297c0 100644 --- a/test/end-to-end/serve-service/serve-distdir-root/absent.sh +++ b/test/end-to-end/serve-service/serve-distdir-root/absent.sh @@ -21,6 +21,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-distdir-root/present.sh b/test/end-to-end/serve-service/serve-distdir-root/present.sh index 22b7c1de..8a205182 100644 --- a/test/end-to-end/serve-service/serve-distdir-root/present.sh +++ b/test/end-to-end/serve-service/serve-distdir-root/present.sh @@ -24,6 +24,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-distdir-root/upload.sh b/test/end-to-end/serve-service/serve-distdir-root/upload.sh index c195f237..ff33599d 100644 --- a/test/end-to-end/serve-service/serve-distdir-root/upload.sh +++ b/test/end-to-end/serve-service/serve-distdir-root/upload.sh @@ -22,6 +22,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly DISTDIR="${TEST_TMPDIR}/distfiles" diff --git a/test/end-to-end/serve-service/serve-file-root/upload.sh b/test/end-to-end/serve-service/serve-file-root/upload.sh index 5f7ed7e8..3362aa0d 100644 --- a/test/end-to-end/serve-service/serve-file-root/upload.sh +++ b/test/end-to-end/serve-service/serve-file-root/upload.sh @@ -24,6 +24,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly LOCAL_REPO="${TEST_TMPDIR}/repo_root" diff --git a/test/end-to-end/serve-service/serve-git-root/absent-upload.sh b/test/end-to-end/serve-service/serve-git-root/absent-upload.sh index e41dccfd..2fa54512 100644 --- a/test/end-to-end/serve-service/serve-git-root/absent-upload.sh +++ b/test/end-to-end/serve-service/serve-git-root/absent-upload.sh @@ -22,6 +22,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly LOCAL_REPO="${TEST_TMPDIR}/repo_root" diff --git a/test/end-to-end/serve-service/serve-git-root/absent.sh b/test/end-to-end/serve-service/serve-git-root/absent.sh index 81a50349..ab808d53 100644 --- a/test/end-to-end/serve-service/serve-git-root/absent.sh +++ b/test/end-to-end/serve-service/serve-git-root/absent.sh @@ -21,6 +21,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly LBR="${TEST_TMPDIR}/local-build-root" diff --git a/test/end-to-end/serve-service/serve-git-root/present.sh b/test/end-to-end/serve-service/serve-git-root/present.sh index 2682a050..51723be2 100644 --- a/test/end-to-end/serve-service/serve-git-root/present.sh +++ b/test/end-to-end/serve-service/serve-git-root/present.sh @@ -21,6 +21,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly LBR="${TEST_TMPDIR}/local-build-root" diff --git a/test/end-to-end/serve-service/serve-git-tree-root/absent.sh b/test/end-to-end/serve-service/serve-git-tree-root/absent.sh index 0eb6b444..1e4b5f05 100644 --- a/test/end-to-end/serve-service/serve-git-tree-root/absent.sh +++ b/test/end-to-end/serve-service/serve-git-tree-root/absent.sh @@ -21,6 +21,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly LBR="${TEST_TMPDIR}/local-build-root" diff --git a/test/end-to-end/serve-service/serve-git-tree-root/present.sh b/test/end-to-end/serve-service/serve-git-tree-root/present.sh index 91f0982b..2a704b52 100644 --- a/test/end-to-end/serve-service/serve-git-tree-root/present.sh +++ b/test/end-to-end/serve-service/serve-git-tree-root/present.sh @@ -21,6 +21,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly LBR="${TEST_TMPDIR}/local-build-root" diff --git a/test/end-to-end/serve-service/serve-tree.sh b/test/end-to-end/serve-service/serve-tree.sh index 2246eb16..75573964 100755 --- a/test/end-to-end/serve-service/serve-tree.sh +++ b/test/end-to-end/serve-service/serve-tree.sh @@ -13,7 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -set -e +set -eu + +env readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" diff --git a/test/end-to-end/serve-service/serve_query_target_cache_value.sh b/test/end-to-end/serve-service/serve_query_target_cache_value.sh index a0303f53..9a09ec47 100644 --- a/test/end-to-end/serve-service/serve_query_target_cache_value.sh +++ b/test/end-to-end/serve-service/serve_query_target_cache_value.sh @@ -20,6 +20,8 @@ set -eu +env + readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly LBR="${TEST_TMPDIR}/local-build-root" |