From 911f07093621711131f29f061fe2ef565ff54dd3 Mon Sep 17 00:00:00 2001 From: Andy Feller Date: Fri, 25 Oct 2024 08:40:31 -0400 Subject: [PATCH] Skip extension testscript if bash isn't available As this testscript creates a Bash-based script extension, the testscript should be skipped if it isn't on the path and executable. Ideally, we would refactor this test to isolate that portion of the tests OR switch to a Go-based extension that can be compiled and run everywhere. --- acceptance/testdata/extension/commandset.txtar | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acceptance/testdata/extension/commandset.txtar b/acceptance/testdata/extension/commandset.txtar index e994ec3b0..a4d194757 100644 --- a/acceptance/testdata/extension/commandset.txtar +++ b/acceptance/testdata/extension/commandset.txtar @@ -1,3 +1,6 @@ +# Skip if Bash is not available given script extension +[!exec:bash] skip + # Setup environment variables used for testscript env EXT_NAME=${SCRIPT_NAME}-${RANDOM_STRING} env EXT_SCRIPT=gh-${EXT_NAME}