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

From: Ævar Arnfjörð Bjarmason <[email-masked]>
Date: Fri, 02 Jul 2021 01:15:13 +0200

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.