From 8ed4f46de6207c9dfd86775b95b93ae36372ef93 Mon Sep 17 00:00:00 2001 From: Josh Rabinowitz Date: Mon, 11 Feb 2019 09:05:16 -0500 Subject: [PATCH] fix test under git hook (#349) * fix test under git hook. Actually closes #334 --- tests/test_hide.bats | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_hide.bats b/tests/test_hide.bats index e2cf3781..561ba55d 100644 --- a/tests/test_hide.bats +++ b/tests/test_hide.bats @@ -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"