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

Re: [PATCH 4/5] test: improve rebase -q test

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:57:28

Jonathan Nieder [off-list ref] writes:
Junio C Hamano wrote:
quoted
A more preferrable alternative may be adding something like this to
test-lib.sh and call it from here and elsewhere (there are about 50
places that do "test ! -s <filename>"), perhaps?

        test_must_be_an_empty_file () {
                if test -s "$1"
                then
                        cat "$1"
                        false
                fi
        }
I generally just use the two-liner

	>empty &&
	test_cmp empty output

directly in cases like this.
That would work, too.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help