diff mbox series

[10/11] t7519: disable external GIT_TEST_FSMONITOR variable

Message ID cd717ef5de44c965ae82607baccd1557fed02825.1574374826.git.gitgitgadget@gmail.com (mailing list archive)
State New, archived
Headers show
Series Improve testability with GIT_TEST_FSMONITOR | expand

Commit Message

Sun Chao via GitGitGadget Nov. 21, 2019, 10:20 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