From 23acc985313385c99c14b91582ad1ea9306c9600 Mon Sep 17 00:00:00 2001 From: Mike Bland Date: Fri, 16 Sep 2016 08:21:54 -0400 Subject: [PATCH] test: Set ignore pattern from `bats/*` to `bats` Minor tweak after dealing with the Bash 4.4 `GLOBIGNORE` issue in the previous commit. --- scripts/test | 2 +- tests/test.bats | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/test b/scripts/test index 637b039..9f6f814 100755 --- a/scripts/test +++ b/scripts/test @@ -20,7 +20,7 @@ # you may need to include it in quotes so it isn't expanded by the shell # _before_ executing the {{cmd}} command. -declare -r __GO_TEST_GLOB_ARGS=('--ignore' 'bats/*' 'tests' '.bats') +declare -r __GO_TEST_GLOB_ARGS=('--ignore' 'bats' 'tests' '.bats') _test_tab_completion() { local word_index="$1" diff --git a/tests/test.bats b/tests/test.bats index fe595a2..0872e07 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -20,7 +20,7 @@ teardown() { @test "$SUITE: tab complete flags, first-level tests and directories" { local expected=('--coverage' '--edit' '--list') expected+=($('./go' 'glob' '--complete' '5' \ - '--trim' '--ignore' 'bats/*' 'tests' '.bats')) + '--trim' '--ignore' 'bats' 'tests' '.bats')) [[ "${#expected[@]}" -ne 1 ]] run ./go test --complete 0 '' @@ -51,7 +51,7 @@ _trim_expected() { @test "$SUITE: no arguments after --list lists all tests" { local expected=( - $('./go' 'glob' '--trim' '--ignore' 'bats/*' 'tests' '.bats')) + $('./go' 'glob' '--trim' '--ignore' 'bats' 'tests' '.bats')) [[ "${#expected[@]}" -ne 0 ]] run ./go test --list