From 9ab88eae8bb58c5db5ca5c232fe10ccbd4fe56d0 Mon Sep 17 00:00:00 2001 From: Dominik Salvet Date: Tue, 26 Nov 2024 20:38:32 +0100 Subject: [PATCH] Revert "try disable shell tracing in test" This reverts commit a210f2f812252c2cb6672636d129500ec08038d4. --- test/feature/self-install.sh | 8 ++++---- test/run.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/feature/self-install.sh b/test/feature/self-install.sh index c254a27..4172d20 100755 --- a/test/feature/self-install.sh +++ b/test/feature/self-install.sh @@ -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" @@ -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 diff --git a/test/run.sh b/test/run.sh index 22022b2..a5eaadf 100755 --- a/test/run.sh +++ b/test/run.sh @@ -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 &&