From a170c330955206e7df9d5ce7da1d196f24e283d8 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Thu, 16 Nov 2023 10:03:11 +0100 Subject: end-to-end serve-target-cache-hit: test the failure if... ...the client and serve use two different remote execution endpoints fixup test --- test/end-to-end/serve-service/serve_target_cache_hit.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/end-to-end/serve-service/serve_target_cache_hit.sh b/test/end-to-end/serve-service/serve_target_cache_hit.sh index 7d6c118b..6b57625f 100644 --- a/test/end-to-end/serve-service/serve_target_cache_hit.sh +++ b/test/end-to-end/serve-service/serve_target_cache_hit.sh @@ -138,9 +138,20 @@ CONF=$("${JUST_MR}" --norc --local-build-root "${LBR}" setup) cat "${CONF}" echo # test that it fails without using just serve -"${JUST}" build --local-build-root "${LBR}" -C "${CONF}" main && echo "this should fail" && exit 1 +"${JUST}" analyse --local-build-root "${LBR}" -C "${CONF}" main && echo "this should fail" >&2 && exit 1 echo "failed as expected" +# test that it fails if we use a different remote execution address w.r.t. the +# one used by just-serve +"${JUST}" analyse \ + --local-build-root "${LBR}" \ + --remote-serve-address "${SERVE}" \ + -C "${CONF}" \ + -r "${SERVE}" \ + ${REMOTE_PROPERTIES} \ + ${DISPATCH} \ + main && echo "this should fail" >&2 && exit 1 + # test that we can successfully compile using just serve "${JUST}" build \ --local-build-root "${LBR}" \ -- cgit v1.2.3