From c0359129bb72f732564028dfe01d98891c9654a3 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Wed, 2 Dec 2020 21:42:33 +0000 Subject: [PATCH] Best guess for new line numbers --- test/test.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.bats b/test/test.bats index 4e1f802..8ca6170 100644 --- a/test/test.bats +++ b/test/test.bats @@ -51,10 +51,10 @@ function setup() { [ $status -eq $expectedExitStatus ] # Check output - #[ "${lines[1]}" == "::add-matcher::${RUNNER_TEMP}/_github_workflow/codespell-matcher.json" ] + [ "${lines[1]}" == $errorCount ] + [ "${lines[2]}" == "::add-matcher::${RUNNER_TEMP}/_github_workflow/codespell-matcher.json" ] outputRegex="^Running codespell on '${INPUT_PATH}'" - #[[ "${lines[2]}" =~ $outputRegex ]] - #[ "${lines[-4]}" == $errorCount ] + [[ "${lines[3]}" =~ $outputRegex ]] [ "${lines[-3]}" == "Codespell found one or more problems" ] [ "${lines[-2]}" == "::remove-matcher owner=codespell-matcher-default::" ] [ "${lines[-1]}" == "::remove-matcher owner=codespell-matcher-specified::" ]