runtest: Don't worry about how implementation echoes input
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 23 May 2020 09:58:57 +0000 (10:58 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 23 May 2020 10:51:52 +0000 (11:51 +0100)
commitd7f5f54c38c94c86255ba2b2c281054d75cace7e
treeaf5fd7700c324d169e39de6aef744d6fb125c3e9
parent5952e9dcc9470a2823e5c26cf42ce9da0f12e993
runtest: Don't worry about how implementation echoes input

Some of the complexity of runtest is in the way that it insists on
checking whether the implementation managed to echo its input line
correctly.  This isn't really an important part of the implementation,
though, and when using friendly line-editing libraries the echoing can
often end up containing escape sequences.  Simplify things by just
assuming that anything up to the first newline is our input being echoed
back.

This also means that various pre-processing of input is no longer
required.
runtest.py