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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux