summaryrefslogtreecommitdiff
path: root/t/perf/p7519-fsmonitor.sh
diff options
context:
space:
mode:
authorLibravatar Nipunn Koorapati <nipunn@dropbox.com>2020-10-26 19:32:50 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-10-26 16:39:34 -0700
commita05b71ab91502db5e1234bc7aaf837bf49564c90 (patch)
treeeb069271e6f38fbdfc69e52bda03a9326d940a95 /t/perf/p7519-fsmonitor.sh
parentt/perf/fsmonitor: silence initial git commit (diff)
downloadtgif-a05b71ab91502db5e1234bc7aaf837bf49564c90.tar.xz
t/perf/fsmonitor: factor setup for fsmonitor into function
This prepares for it being called multiple times when testing different hooks Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/p7519-fsmonitor.sh')
-rwxr-xr-xt/perf/p7519-fsmonitor.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/t/perf/p7519-fsmonitor.sh b/t/perf/p7519-fsmonitor.sh
index 970caff3d2..087f66ecc2 100755
--- a/t/perf/p7519-fsmonitor.sh
+++ b/t/perf/p7519-fsmonitor.sh
@@ -103,7 +103,7 @@ test_expect_success "one time repo setup" '
fi
'
-test_expect_success "setup for fsmonitor" '
+setup_for_fsmonitor() {
# set INTEGRATION_SCRIPT depending on the environment
if test -n "$GIT_PERF_7519_FSMONITOR"
then
@@ -130,7 +130,7 @@ test_expect_success "setup for fsmonitor" '
cat error &&
[ ! -s error ] && # ensure no silent error
git status # Warm caches
-'
+}
test_perf_w_drop_caches () {
if test -n "$GIT_PERF_7519_DROP_CACHE"; then
@@ -188,6 +188,10 @@ test_fsmonitor_suite() {
'
}
+test_expect_success "setup for fsmonitor" '
+ setup_for_fsmonitor
+'
+
test_fsmonitor_suite
test_expect_success "setup without fsmonitor" '