]> git.pond.sub.org Git - empserver/commit
tests: Simplify running cmp_out more than once
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 29 Jan 2014 18:56:38 +0000 (19:56 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 1 Feb 2015 15:52:59 +0000 (16:52 +0100)
commit4c92dc36babbb4d1fcddce38b08ccf7a023d91e3
treed2ecdf4513265c67ac0ee07beebed67988daa2e3
parentcc692142d9b8824ad46e0b0d7cc949813cedf2d9
tests: Simplify running cmp_out more than once

When cmp_out detects a test failure, it returns non-zero status, which
terminates the test script unless caught.

Accumulate failures in a global variable checked at exit instead, so
running it multiple times in a test script just works.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
tests/test-common.sh