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

Re: [PATCH 2/3] test: improve rebase -q test

From: Felipe Contreras <hidden>
Date: 2016-06-15 22:57:38

Possibly related (same subject, not in this thread)

On Sun, Jun 9, 2013 at 1:30 PM, Junio C Hamano [off-list ref] wrote:
quoted hunk ↗ jump to hunk
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -606,6 +606,18 @@ test_cmp() {
        $GIT_TEST_CMP "$@"
 }

+# Check if the file expected to be empty is indeed empty, and barfs
+# otherwise.
+
+test_output_must_be_empty () {
Why such a big name? test_empty() does the trick.
+       if test -s "$1"
+       then
+               echo "Bad: test_output_must_be_empty '$1', but has the following."
echo "'$1' is not empty, it contains:"

Cheers.

-- 
Felipe Contreras
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help