diff --git a/pkg/csconfig/crowdsec_service.go b/pkg/csconfig/crowdsec_service.go index b7a7c7b8e..56cc2fb22 100644 --- a/pkg/csconfig/crowdsec_service.go +++ b/pkg/csconfig/crowdsec_service.go @@ -57,13 +57,13 @@ func (c *Config) LoadCrowdsec() error { } files, err := filepath.Glob(c.Crowdsec.AcquisitionDirPath + "/*.yaml") if err != nil { - return errors.Wrap(err, "while globing acquis_dir") + return errors.Wrap(err, "while globbing acquis_dir") } c.Crowdsec.AcquisitionFiles = append(c.Crowdsec.AcquisitionFiles, files...) files, err = filepath.Glob(c.Crowdsec.AcquisitionDirPath + "/*.yml") if err != nil { - return errors.Wrap(err, "while globing acquis_dir") + return errors.Wrap(err, "while globbing acquis_dir") } c.Crowdsec.AcquisitionFiles = append(c.Crowdsec.AcquisitionFiles, files...) } diff --git a/tests/README.md b/tests/README.md index 8c6a68094..6309dd6f1 100644 --- a/tests/README.md +++ b/tests/README.md @@ -69,9 +69,9 @@ To repeat test runs without rebuilding crowdsec, use `make bats-test`. ## Troubleshooting tests -See `./tests/run-tests` usage to run/debug single test. - +See `./tests/run-tests --help` to run/debug specific tests. +Example: `./tests/run-tests tests/bats/02_nolapi.bats -f "cscli config backup"` (the string is a regexp) # How does it work? diff --git a/tests/run-tests b/tests/run-tests index 559deef14..194709172 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -35,7 +35,7 @@ if [ $# -ge 1 ]; then "${TEST_DIR}/lib/bats-core/bin/bats" \ --jobs 1 \ --print-output-on-failure \ - -T "$@" + "$@" else echo "test files: ${TEST_DIR}/bats ${TEST_DIR}/dyn-bats" "${TEST_DIR}/lib/bats-core/bin/bats" \