Thread (10 messages) flat view 10 messages, 3 authors, 2016-06-15

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

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:57:28

Junio C Hamano wrote:
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.

Thanks,
Jonathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help