From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 7/7] runner/runner_tests: change a regex to match case-insensitive
Date: Mon, 30 Oct 2023 10:56:13 +0100 [thread overview]
Message-ID: <20231030105613.2fe80103@maurocar-mobl2> (raw)
In-Reply-To: <20231025095622.q6mmkda4h4km54fp@kamilkon-desk.igk.intel.com>
On Wed, 25 Oct 2023 11:56:22 +0200
Kamil Konieczny <kamil.konieczny@linux.intel.com> wrote:
> Hi Mauro,
> On 2023-10-24 at 16:11:10 +0200, Mauro Carvalho Chehab wrote:
> > From: Mauro Carvalho Chehab <mchehab@kernel.org>
> >
> > As regular expressions are now case-insensitive, change an
> > unit test to verify that case-insensitive logic is working
> > as expected.
> >
> > Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
> > ---
> > runner/runner_tests.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/runner/runner_tests.c b/runner/runner_tests.c
> > index 11ff05bc0e7e..c35668bc8f0e 100644
> > --- a/runner/runner_tests.c
> > +++ b/runner/runner_tests.c
> > @@ -1812,7 +1812,7 @@ igt_main
> >
> > igt_subtest_group {
> > const char testlisttext[] = "igt@successtest";
> > - const char blocktext[] = "igt@successtest@first";
> > + const char blocktext[] = "igt@successTEST@first";
>
> Please make a separate test for this, also add Petri on Cc.
> You can also consider upper-case test names (or subtests).
Adding more than one test for case-insensitive regex is probably
overkill, as we don't want to check if glib is doing the right
thing. We just want to ensure that no regressions on IGT will
happen if one ever changes the arguments for g_regex_new() call
for blacklists at runner/settings.c.
Just sent a refresh of this one adding a new test instead of
modifying an existing one.
>
> Regards,
> Kamil
>
> > struct job_list *list = malloc(sizeof(*list));
> > volatile int dirfd = -1;
> > char dirname[] = "tmpdirXXXXXX";
> > --
> > 2.41.0
> >
next prev parent reply other threads:[~2023-10-30 9:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-24 14:11 [igt-dev] [PATCH i-g-t 0/7] better sync test_list.py with igt_runner Mauro Carvalho Chehab
2023-10-24 14:11 ` [igt-dev] [PATCH i-g-t 1/7] runner: Normalize testlist entries that don't list subtests Mauro Carvalho Chehab
2023-10-24 14:11 ` [igt-dev] [PATCH i-g-t 2/7] runner/runner_tests: Unit tests for binary-name-only testlist entries Mauro Carvalho Chehab
2023-10-24 14:11 ` [igt-dev] [PATCH i-g-t 3/7] runner/runner_tests: Fix name of no-subtests in unit tests Mauro Carvalho Chehab
2023-10-24 14:11 ` [igt-dev] [PATCH i-g-t 4/7] igt_runner: don't require root for dry_run Mauro Carvalho Chehab
2023-10-25 7:53 ` Kamil Konieczny
2023-10-24 14:11 ` [igt-dev] [PATCH i-g-t 5/7] scripts/test_list.py: better handle list of tests Mauro Carvalho Chehab
2023-10-25 7:54 ` Kamil Konieczny
2023-10-24 14:11 ` [igt-dev] [PATCH i-g-t 6/7] runner/job_list: use case-insensitive regular expressions Mauro Carvalho Chehab
2023-10-25 7:56 ` Kamil Konieczny
2023-10-24 14:11 ` [igt-dev] [PATCH i-g-t 7/7] runner/runner_tests: change a regex to match case-insensitive Mauro Carvalho Chehab
2023-10-25 9:56 ` Kamil Konieczny
2023-10-30 9:56 ` Mauro Carvalho Chehab [this message]
2023-10-24 15:45 ` [igt-dev] ✓ Fi.CI.BAT: success for better sync test_list.py with igt_runner Patchwork
2023-10-24 15:46 ` [igt-dev] ✗ GitLab.Pipeline: warning " Patchwork
2023-10-25 4:17 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
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=20231030105613.2fe80103@maurocar-mobl2 \
--to=mauro.chehab@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.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