awslabs / git-secrets

Prevents you from committing secrets and credentials into git repositories
Apache License 2.0
12.36k stars 1.17k forks source link

Tests failing on non-English locales #99

Closed fmarier closed 5 years ago

fmarier commented 5 years ago

On a machine with LANG=fr_CA.UTF-8, this test fails:

 ✗ no arguments prints usage instructions
   (in test file test/git-secrets.bats, line 7)
     `[ $(expr "${lines[0]}" : "usage: git secrets") -ne 0 ]' failed

If I run LANG=C make test on the other hand, this test succeeds.

The reason is that git-secrets -h returns usage : git secrets (extra space before the colon) whereas the test is looking for usage: git secrets.