Skip to content

Commit

Permalink
Revert "try disable shell tracing in test"
Browse files Browse the repository at this point in the history
This reverts commit a210f2f.
  • Loading branch information
dominiksalvet committed Nov 26, 2024
1 parent 56d993a commit 9ab88ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions test/feature/self-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ out1="$($GITPACK -H install "$URL=$HASH")"
test "$out1" = ">>> running install for $URL=$HASH
<<< done; successfully installed"

out2="$(sh "$HOME/.local/bin/gitpack" -H status "$URL=$HASH")"
out2="$(sh -x "$HOME/.local/bin/gitpack" -H status "$URL=$HASH")"
test "$out2" = ">>> running status for $URL=$HASH
<<< candidate $HASH already installed"

out3="$(sh "$HOME/.local/bin/gitpack" -H uninstall "$URL")"
out3="$(sh -x "$HOME/.local/bin/gitpack" -H uninstall "$URL")"
test "$out3" = ">>> running uninstall for $URL
<<< done; successfully uninstalled"

Expand All @@ -24,11 +24,11 @@ if [ "$USE_SUDO" = true ]; then
test "$out4" = ">>> running install for $URL=$HASH
<<< done; successfully installed"

out5="$(sudo sh /usr/local/bin/gitpack -H status "$URL=$HASH")"
out5="$(sudo sh -x /usr/local/bin/gitpack -H status "$URL=$HASH")"
test "$out5" = ">>> running status for $URL=$HASH
<<< candidate $HASH already installed"

out6="$(sudo sh /usr/local/bin/gitpack -H uninstall "$URL")"
out6="$(sudo sh -x /usr/local/bin/gitpack -H uninstall "$URL")"
test "$out6" = ">>> running uninstall for $URL
<<< done; successfully uninstalled"
fi
4 changes: 2 additions & 2 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export HASH="${GITHUB_SHA:?}" && # current commit hash
SHORT_HASH="$(echo "$HASH" | cut -c 1-7)" &&
export SHORT_HASH &&

export GITPACK='sh src/gitpack' && # GitPack with tracing enabled
export SUDO_GITPACK='sudo sh src/gitpack' && # root permissions
export GITPACK='sh -x src/gitpack' && # GitPack with tracing enabled
export SUDO_GITPACK='sudo sh -x src/gitpack' && # root permissions
export URL=github.com/dominiksalvet/gitpack &&
export VERSION=1.1.0 && # latest GitPack version
export VERSION_HASH=d6cf61871c93e89b5c622d77ff8fa517da5d3ce0 &&
Expand Down

0 comments on commit 9ab88ea

Please sign in to comment.