testsuite: grep the expected output only when needed
commitcb879872644ac28665f118949f47aa180494d84f
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 28 May 2017 14:52:02 +0000 (28 16:52 +0200)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 28 May 2017 19:10:25 +0000 (28 21:10 +0200)
tree542492d38c29f69145c9a2ad1ea2291ae91b389a
parent3d511f88d9d6bbc46ec15415bf29f89d51ee2b9c
testsuite: grep the expected output only when needed

Currently the testsuite always try to extract the expected
output from the test case description.
This is done with grep & sed.

But in some case we're not interested to compare the actual
output with the expected one. And in those cases the grep & sed
are just wasted CPU cycles.

Fix this by extracting the expected output only when we know
that it won't be ignored.

This speedup the testsuite by a modest 1%.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
validation/test-suite