[U-Boot] [PATCH V2 2/2] test/py: capture the entire U-Boot version at boot

Simon Glass sjg at chromium.org
Sat Feb 6 21:30:06 CET 2016


On 5 February 2016 at 18:04, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> The existing regex simply ensures that the captured version string doesn't
> go past the end of a line. We really want to grab as much as possible. Do
> this by explicitly including a ) character at the end of the regex to
> match the last character of the version test.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> v2: Also remove some now-redundant code. The signon regex now never
> matches the text ", Build: ...", so there's no need for explicit code to
> chop it out.
> ---
>  test/py/u_boot_console_base.py | 11 +++--------
>  1 file changed, 3 insertions(+), 8 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>
Tested on sandbox:
Tested-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list