Closed polluks closed 2 years ago
I see, one function is better than three cmp's. However without exit you get some kind of overview.
Stefan @.***> wrote:
I see, one function is better than three cmp's. However without exit you get some kind of overview.
Before, I usually searched the output for the first failure to fix. Now, that would be much easier.
I have applied a cleaned up version of this patch. Please report if there is a problem.
Thanks, Ali
Stefan @.***> wrote:
Thanks for the patch.
Given that even a single failure is unacceptable, how about stopping at the first failure instead?
Something like this patch:
diff --git a/test.sh b/test.sh index 28e9a48..b2b3d4b 100755 --- a/test.sh +++ b/test.sh @@ -1,15 +1,23 @@
!/bin/sh
+testcase() {
for x in test/e??.sh; do rm -f /tmp/.neatvi[12]
testcase /tmp/.neatvi[12] && echo "OK" done
for x in test/v??.sh; do rm -f /tmp/.neatvi[12]