[v2,7/8] t7519: disable external GIT_TEST_FSMONITOR variable
diff mbox series

Message ID 215ec8688e60c594d50628caa03258010e4d6606.1575907804.git.gitgitgadget@gmail.com
State New
Headers show
  • Improve testability with GIT_TEST_FSMONITOR
Related show

Commit Message

Matthew Rogers via GitGitGadget Dec. 9, 2019, 4:10 p.m. UTC
From: Derrick Stolee <dstolee@microsoft.com>

The GIT_TEST_FSMONITOR variable was created specifically so the
t7519-status-fsmonitor.sh test script could tweak the expected
behavior depending on its value. However, if we set it externally
to use the Watchman integration, then it breaks the initial tests
that demonstrate behavior _without_ the fsmonitor feature.

Disable this variable at the start of the script.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
 t/t7519-status-fsmonitor.sh | 3 +++
 1 file changed, 3 insertions(+)

diff mbox series

diff --git a/t/t7519-status-fsmonitor.sh b/t/t7519-status-fsmonitor.sh
index 81a375fa0f..443d2e653b 100755
--- a/t/t7519-status-fsmonitor.sh
+++ b/t/t7519-status-fsmonitor.sh
@@ -8,6 +8,9 @@  test_description='git status with file system watcher'
 # "git update-index --fsmonitor" can be used to get the extension written
 # before testing the results.
+# Disable an external value, as we will set it directly as needed.
 clean_repo () {
 	git reset --hard HEAD &&
 	git clean -fd