summaryrefslogtreecommitdiff
path: root/test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known-upload.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known-upload.sh')
-rw-r--r--test/end-to-end/serve-service/serve-archive-root/unresolved-absent-known-upload.sh44
1 files changed, 13 insertions, 31 deletions
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 c27c8066..f087b3d6 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
@@ -18,7 +18,7 @@
# This test checks that an absent root can successfully be made in the presence
# of the serve endpoint in the situation where we already have the file
# association (i.e., we know the unresolved root tree) and the serve endpoint
-# does not know the archive. The upload can only happen in native mode.
+# does not know the archive.
#
# The test archive does not contain symlinks.
##
@@ -96,35 +96,17 @@ rm -rf "${DISTDIR}"
# While keeping the file association, ask serve endpoint to provide the root as
# absent. For a serve endpoint that does not have the archive blob available,
# this will require uploading the locally-known root tree to remote CAS, from
-# where the serve endpoint will pick it up. This can only happen in native mode.
-if [ -z "${COMPAT}" ]; then
-
- ${JUST} gc --local-build-root ${LBR} 2>&1
- ${JUST} gc --local-build-root ${LBR} 2>&1
-
- CONF=$("${JUST_MR}" --norc -C repos.json \
- --just "${JUST}" \
- --local-build-root "${LBR}" \
- --log-limit 6 \
- ${ENDPOINT_ARGS} setup absent)
- cat "${CONF}"
- echo
- test $(jq -r '.repositories.absent.workspace_root[1]' "${CONF}") = "${TREE}"
-
-else
-
- echo ---
- echo Checking expected failures
-
- ${JUST} gc --local-build-root ${LBR} 2>&1
- ${JUST} gc --local-build-root ${LBR} 2>&1
-
- "${JUST_MR}" --norc -C repos.json \
- --just "${JUST}" \
- --local-build-root "${LBR}" \
- --log-limit 6 \
- ${ENDPOINT_ARGS} setup absent 2>&1 && exit 1 || :
- echo Failed as expected
-fi
+# where the serve endpoint will pick it up.
+${JUST} gc --local-build-root ${LBR} 2>&1
+${JUST} gc --local-build-root ${LBR} 2>&1
+
+CONF=$("${JUST_MR}" --norc -C repos.json \
+ --just "${JUST}" \
+ --local-build-root "${LBR}" \
+ --log-limit 6 \
+ ${ENDPOINT_ARGS} setup absent)
+cat "${CONF}"
+echo
+test $(jq -r '.repositories.absent.workspace_root[1]' "${CONF}") = "${TREE}"
echo OK