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

Re: [PATCH] t6022: Use -eq not = to test output of wc -l

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2016-06-15 22:49:59

 The alternative would be to use 3 = $(wc -l) (sans quotes), but other parts
 of the test used the -eq method.
A IMO saner alternative is to add a new test-lib.sh function for this.

E.g.:

-       test 3 = "$(git ls-files -u | wc -l)" &&
-       test_wc 3 "git ls-files -u" &&

We could use test_cmp or something internally so we'd get meaningful
output when those tests fail.

But this is a good fix anyway.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help