Skip to content

Commit

Permalink
fix test under git hook (#349)
Browse files Browse the repository at this point in the history
* fix test under git hook. Actually closes #334
  • Loading branch information
joshrabinowitz committed Feb 11, 2019
1 parent 5a28744 commit 8ed4f46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_hide.bats
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ function teardown {
}

@test "run 'hide' from inside subdirectory" {

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 root_dir='test_sub_dir'
mkdir -p "$root_dir"
Expand Down

0 comments on commit 8ed4f46

Please sign in to comment.