From: Petr Vorel <pvorel@suse.cz>
To: Wake Liu <wakel@google.com>
Cc: ttritton@google.com, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] tst_test.sh: Replace GNU word boundary \b with \< in grep
Date: Tue, 30 Jun 2026 10:09:16 +0200 [thread overview]
Message-ID: <20260630080916.GA225459@pevik> (raw)
In-Reply-To: <20260630071639.2248082-1-wakel@google.com>
Hi Terence, Wake,
> The regex word boundary extension '\b' is a GNU extension and is not
> supported by Toybox and lightweight POSIX regex implementations
> (such as Bionic libc), causing grep to fail with:
> grep: bad regex '^[^#]*\bTST_': trailing backslash (\)
Thanks, merged.
> Replace '\b' with '\<' to ensure shell tests run correctly on
> lightweight environments such as Android (Toybox).
Out of curiosity, in the end you plan to use LTP shell tests? Although skipped
tests did not mention any shell test, we did not expect you'd be running it.
FYI tst_test.sh (aka "new API") is being slowly replaced by new "shell loader"
API [2] (or tests are rewritten in C).
I also wonder if you use our new runner kirk already [3].
Kind regards,
Petr
[1] https://android.googlesource.com/platform/external/ltp/+/refs/heads/main/android/skipped-tests.txt
[2] https://linux-test-project.readthedocs.io/en/latest/developers/api_shell_tests.html
[3] https://github.com/linux-test-project/kirk
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-06-30 8:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 7:16 [LTP] [PATCH] tst_test.sh: Replace GNU word boundary \b with \< in grep Wake Liu via ltp
2026-06-30 8:09 ` Petr Vorel [this message]
2026-07-01 2:26 ` Wake Liu via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260630080916.GA225459@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=ttritton@google.com \
--cc=wakel@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox