diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2024-10-11 14:01:14 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-11 15:57:44 +0100 |
commit | 6b90b53c7a103b0658702c06169f64f09b43bde7 (patch) | |
tree | fa21e88b105a6a0bce639f04dcbbc1887e3c37a8 /scripts/lib/wic/plugins/source/rootfs.py | |
parent | 776c12c5c860bd0be4e2399724b7fbe04107a838 (diff) | |
download | poky-6b90b53c7a103b0658702c06169f64f09b43bde7.tar.gz |
oeqa/utils/qemurunner: support ignoring vt100 escape sequences
If we talk to terminals that like colors, we need to ignore the vt100
escape sequences when matching strings.
An unprocessed barebox console prompt would e.g. look like:
ESC[1;32mbarebox@ESC[1;36mARM QEMU virt64:/ESC[0m
where we cannot match for something like "barebox@ARM QEMU virt64:/".
The same applies to colored Linux terminal output of course.
The "\x1b\[" from the regex catches the standard start of ANSI escape
sequence while the rest catches the actual command code executed.
(From OE-Core rev: 33bbe4cb040f890121681865fbcf28bc8213a170)
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins/source/rootfs.py')
0 files changed, 0 insertions, 0 deletions