]> git.puffer.fish Git - mirror/frr.git/commit
lib: lutil matching without changing newlines
authorG. Paul Ziemba <paulz@labn.net>
Thu, 12 Apr 2018 06:03:43 +0000 (23:03 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:13 +0000 (20:22 -0500)
commitc63906e8cf8e9672bb12d2a3701d38ff02659b49
tree485a3ac86281994b1b51c74a66cadb109409a590
parentd86321ae94b1eda4582800198e511c784d053a53
lib: lutil matching without changing newlines

Prior behavior of luCommand was to convert newlines to spaces in DUT
output before pattern matching. New method operating in parallel uses
re.DOTALL to mimic same behavior and allow preserving original DUT output.
The original output is needed for some scripts that parse line-by-line.

There is also some test code to compare match results using the
old way and new way and log a message if they are different. After
some short time we can develop confidence that using this new method
will not break any existing tests.

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
tests/topotests/lib/lutil.py