]> git.ipfire.org Git - people/ms/u-boot.git/commit
tools: Update python "help" tests to cope with "more" oddities
authorTom Rini <trini@konsulko.com>
Tue, 16 Jan 2018 20:29:50 +0000 (15:29 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 16 Jan 2018 21:15:25 +0000 (16:15 -0500)
commit3759df0c0810636b31fe64c56868aa831514e509
treee0716dec146d7a15295e6e6d0d645d3f8f5bc676
parent23b4cf32b7ed9e2cd35638878d7c9ccd7537c7ba
tools: Update python "help" tests to cope with "more" oddities

In some cases when "more" is told to page a given file it will prepend
the output with:
::::::::::::::
/PATH/TO/THE/FILE
::::::::::::::

And when this happens the output will not match the expected length.
Further, if we use a different pager we will instead fail the coverage
tests as we will not have 100% coverage.  Update the help test to remove
the string in question.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
tools/binman/ftest.py
tools/buildman/func_test.py