From 6dbdd14e9d0996205f8325a31cdd0367383f94d9 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 23 Oct 2023 15:11:08 -0400 Subject: [PATCH] Invoke test script directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Invoking it with these args stops the command not found handler running. I don’t understand why it has that effect. Also I just don’t know why we would invoke it this way. We clearly were surprised about that in the way that the shebang is defined as a pkgx shebang suggesting we also always want to use our own bash. --- bin/pkg-test | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/pkg-test b/bin/pkg-test index 180a5945..35c311b2 100755 --- a/bin/pkg-test +++ b/bin/pkg-test @@ -54,15 +54,9 @@ for PKG in $PKGS; do stage-test.ts "$PKG" --deps "$DEPS" --dstdir "$DSTDIR" - if command -v bash >/dev/null; then - BASH=bash - else - BASH="pkgx bash" - fi - gum "## running test" - env -i "$BASH" --noprofile --norc -e "$DSTDIR"/dev.pkgx.test.sh + "$DSTDIR"/dev.pkgx.test.sh gum "## running audit"