Fix for tests under bats, fix typos, mention #334 (#342)

* fix test under githooks, fix typos, mention #334 as relevant
pull/356/head
Josh Rabinowitz 5 years ago committed by GitHub
parent 26ecd390d6
commit 5a28744c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -72,7 +72,8 @@ function teardown {
# https://github.com/sobolevn/git-secret/issues/85 task 1
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
skip "this test is skipped while 'git commmit'"
# See #334 for more about this
skip "this test is skipped while 'git commit'"
fi
# Preparations:
@ -105,7 +106,7 @@ function teardown {
@test "run 'add' for relative path" {
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
skip "this test is skipped while 'git commmit'"
skip "this test is skipped while 'git commit'. See #334"
fi
# Prepations:
@ -142,6 +143,11 @@ function teardown {
@test "run 'add' for file in subfolder" {
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
# See #334 for more about this
skip "this test is skipped while 'git commit'"
fi
# Preparations:
local test_file="$TEST_DEFAULT_FILENAME"
local test_dir='test_dir'

@ -41,7 +41,7 @@ function teardown {
# https://github.com/sobolevn/git-secret/issues/83
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
skip "this test is skipped while 'git commmit'"
skip "this test is skipped while 'git commit'. See #334"
fi
# Preparations

@ -156,7 +156,7 @@ function teardown {
@test "run 'tell' in subfolder" {
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
skip "this test is skipped while 'git commmit'"
skip "this test is skipped while 'git commit'. See #334"
fi
# Preparations

@ -46,7 +46,7 @@ function teardown {
@test "run 'whoknows' in subfolder" {
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
skip "this test is skipped while 'git commmit'"
skip "this test is skipped while 'git commit'. See #334"
fi
# Preparations:

@ -9,7 +9,7 @@ if [[ "$BRANCH_NAME" != '(no branch)' ]]; then
# Set marker, that we running tests from `git commit`,
# so some tests will be skipped. It is done, because `git rev-parse`
# is not working when running from pre-commit hook.
# is not working when running from pre-commit hook. See #334
export BATS_RUNNING_FROM_GIT=1
# Run tests:

Loading…
Cancel
Save