From 09f22cd01a4ebf8c0d9894fb04cfc6ea295e5e17 Mon Sep 17 00:00:00 2001 From: Jay Bazuzi Date: Mon, 27 Jan 2025 22:28:29 -0800 Subject: [PATCH] . t add test case for failing exit code --- .github/workflows/ci.yml | 4 ++++ .gitignore | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1129ea0..fab1090 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,3 +16,7 @@ jobs: - name: test bash verify.sh run: ./test.sh | ./verify.sh -t verify-cli-bash working-directory: bash + + - name: failure returns non-zero exit code + run: '! (./verify.sh -t failing-test -d echo <<< "input")' + working-directory: bash diff --git a/.gitignore b/.gitignore index 6c23218..3888097 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.received* +bash/failing-test.approved