Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] tests: turn on test-lint-shell-syntax by default

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:04

Torsten Bögershausen [off-list ref] writes:
Thanks for the detailed suggestion.
Instead of using a file for putting out non portable syntax,
can we can use a similar logic as test_failure ?
Your test_bad_syntax_ function can be called from a subshell, and
its "exit 1" will not exit, no?

	test_expect_success 'prepare a blob with incomplete line' '
		(
			echo first line
                        echo second line
			echo -n final and incomplete line
		) >incomplete.txt
	'
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help