summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-11-15 18:35:47 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-11-15 18:35:47 +0100
commit1471033c7b6d219c464a1ad7ec0386f8a0741834 (patch)
treeff5cced73529406cd51318ff28a36d877994ea75 /test
parent01ffd4d9a5f824a74b0e86750e9145fb623ccbcd (diff)
downloadjustbuild-1471033c7b6d219c464a1ad7ec0386f8a0741834.tar.gz
test ["end-to-end/just-mr", "git-tree-env"]: fix negative test condition
This test was only working by accident, as the missing target specification ["", "sources.txt"] was making the build fail, not the (supposedly) unset variable. Fix this by looking only at the setup command and expect failure there---and also unset the correct variable.
Diffstat (limited to 'test')
-rwxr-xr-xtest/end-to-end/just-mr/git-tree-env.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/end-to-end/just-mr/git-tree-env.sh b/test/end-to-end/just-mr/git-tree-env.sh
index d93ac454..255bd9e9 100755
--- a/test/end-to-end/just-mr/git-tree-env.sh
+++ b/test/end-to-end/just-mr/git-tree-env.sh
@@ -79,8 +79,7 @@ cat repos.json
grep checked-out "${OUT}/sources.txt"
# Verify the environment is needed
-export CREDENTIALS_PATH=/dev/null
-"${JUST_MR}" --norc --just "${JUST}" --local-build-root "${LBR2}" \
- build 2>&1 && exit 1 || :
+export CREDENTIAL_PATH=/dev/null
+"${JUST_MR}" --norc --local-build-root "${LBR2}" setup 2>&1 && exit 1 || :
echo DONE