Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rister committed Sep 3, 2024
1 parent 790d37b commit 9b794d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test-installer
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,13 @@ stop_test

start_test
## negative test: non-existent tag
# for this test we cannot use --git-repo (because it's not allowed in
# conjunction with --release) so we have to "hack" DEFAULT_GIT_REPO to
# point where we need it to
sed -i -e "s|\(DEFAULT_GIT_REPO\)=.*|\1=\"${CRUCIBLE_DIR}\"|" crucible-install.sh
grep "^DEFAULT_GIT_REPO" crucible-install.sh
ec=$(grep EC_FAIL_CHECKOUT= crucible-install.sh | cut -d '=' -f2)
sudo ./crucible-install.sh \
--git-repo ${CRUCIBLE_DIR} \
--release NonExitentTag \
--client-server-registry myregistry.io/crucible
test "$?" = "$ec" || exit 1
Expand Down

0 comments on commit 9b794d4

Please sign in to comment.