From 1471033c7b6d219c464a1ad7ec0386f8a0741834 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 15 Nov 2023 18:35:47 +0100 Subject: 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. --- test/end-to-end/just-mr/git-tree-env.sh | 5 ++--- 1 file 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 -- cgit v1.2.3