Thread (214 messages) flat view 214 messages, 10 authors, 2021-07-26

Re: [PATCH v3 27/34] t7527: create test for fsmonitor--daemon

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2021-07-01 23:16:06

On Thu, Jul 01 2021, Jeff Hostetler via GitGitGadget wrote:
+	grep \"event\":\"start\".*\"fsmonitor--daemon\" .git/trace_implicit_1
+'
+
+test_expect_success 'status implicitly starts daemon' '
+	test_when_finished redundant_stop_daemon &&
+
+	test_must_fail git fsmonitor--daemon status &&
+
+	GIT_TRACE2_EVENT="$(pwd)/.git/trace_implicit_2" \
+		git status >actual &&
+
+	git fsmonitor--daemon status &&
+	test_might_fail git fsmonitor--daemon stop &&
+
+	grep \"event\":\"start\".*\"fsmonitor--daemon\" .git/trace_implicit_2
+'
Seems like this and test_region could eventually be factored into some
common function that would be more flexible about grabbing trace2 data.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help