summaryrefslogtreecommitdiff
path: root/test/end-to-end/just-mr/gc-repo.sh
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-04-23 09:33:56 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-04-23 09:33:56 +0200
commita045db67a4b9e388e66dc80f33e8548465546fc4 (patch)
tree9f1dd8eb9f68c2b64469286fe1031ac1005319d1 /test/end-to-end/just-mr/gc-repo.sh
parenta212d87be891c5146021b6442063ed39a4a1cd4a (diff)
downloadjustbuild-a045db67a4b9e388e66dc80f33e8548465546fc4.tar.gz
Make end-to-end tests independent of the user's configuration
End-to-end tests should, like all tests, be independent of any non-project files the user has in their home directory. This also applies when running the tests locally. In particular, end-to-end tests should not read the user's ~/.just-mrrc. Therefore, properly set --norc in all end-to-end tests (where this is not already the case).
Diffstat (limited to 'test/end-to-end/just-mr/gc-repo.sh')
-rw-r--r--test/end-to-end/just-mr/gc-repo.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/end-to-end/just-mr/gc-repo.sh b/test/end-to-end/just-mr/gc-repo.sh
index 1023eeb5..b6bccf85 100644
--- a/test/end-to-end/just-mr/gc-repo.sh
+++ b/test/end-to-end/just-mr/gc-repo.sh
@@ -160,7 +160,7 @@ cat repos.json
# Set up repos. This should get everything in the local build root.
-"${JUST_MR}" --local-build-root "${LBR}" --git "${BIN}/mock-git" \
+"${JUST_MR}" --norc --local-build-root "${LBR}" --git "${BIN}/mock-git" \
--distdir "${DISTDIR}" -L '["env", "PATH='"${PATH}"'"]' \
setup > "${OUT}/conf-file-name" 2> "${LOG}/log-1"
cat "${LOG}/log-1"
@@ -199,7 +199,7 @@ rm -f "${BIN}/mock-foreign-vcs"
"${JUST}" gc --local-build-root "${LBR}" 2>&1
# Rotate repo cache
-"${JUST_MR}" --local-build-root "${LBR}" gc-repo 2>&1
+"${JUST_MR}" --norc --local-build-root "${LBR}" gc-repo 2>&1
## Verify the mirrored locations are gone
[ -e "${GIT_LOCATION}" ] && exit 1 || :
@@ -208,7 +208,7 @@ rm -f "${BIN}/mock-foreign-vcs"
[ -e "${GIT_TREE_LOCATION}" ] && exit 1 || :
# Setup repos again
-"${JUST_MR}" --local-build-root "${LBR}" -L '["env", "PATH='"${PATH}"'"]' \
+"${JUST_MR}" --norc --local-build-root "${LBR}" -L '["env", "PATH='"${PATH}"'"]' \
setup > "${OUT}/conf-file-name" 2> "${LOG}/log-2"
cat "${LOG}/log-2"
echo