summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-01-29 16:24:32 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-01-31 17:00:52 +0100
commitc1827db24dbc8f0d6eca47c92f34d85bf6b2b128 (patch)
tree41afde9d86a0a3a8b8b5201bee453dc16387075e
parent948c12af73f357e9ed84d009b48a2ca6e6112b32 (diff)
downloadjustbuild-c1827db24dbc8f0d6eca47c92f34d85bf6b2b128.tar.gz
test absent-roots: Serve-endpoint build root must not be removed
A change made to this test was wrongly setting the same path both as build root for the serve instance and for the just-mr instances being tested, resulting in the build root of the serve instance being inadvertently removed during the test. This commit fixes the issue by giving the serve endpoint its own build root path.
-rw-r--r--test/end-to-end/just-mr/absent-roots.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/end-to-end/just-mr/absent-roots.sh b/test/end-to-end/just-mr/absent-roots.sh
index cd15705d..853d2149 100644
--- a/test/end-to-end/just-mr/absent-roots.sh
+++ b/test/end-to-end/just-mr/absent-roots.sh
@@ -23,6 +23,7 @@ readonly INFOFILE="${PWD}/info.json"
readonly PIDFILE="${PWD}/pid.txt"
readonly LBR="${TEST_TMPDIR}/local-build-root"
+readonly SERVE_LBR="${TEST_TMPDIR}/serve-local-build-root"
readonly REPO_ROOT="${PWD}/serve_repo"
readonly TEST_DATA="The content of the data file in foo"
@@ -67,7 +68,7 @@ cat repos.json
cat > .just-servec <<EOF
{ "repositories": ["${REPO_ROOT}"]
, "remote service": {"info file": "${INFOFILE}", "pid file": "${PIDFILE}"}
-, "local build root": "${LBR}"
+, "local build root": "${SERVE_LBR}"
}
EOF
echo "Serve service configuration:"