Linux Test Project
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH v2] lib: Check minimal supported kernel version
Date: Fri, 11 Sep 2026 12:12:52 +0200	[thread overview]
Message-ID: <20260911101252.GA1443368@pevik> (raw)
In-Reply-To: <aqOjPy8_kB0VlHIg@yuki.lan>

> Hi!
> > > +
> > > +	if (tst_kvercmp(v1, v2, v3) < 0)
> > > +		tst_brk(TWARN, "Kernel is older than minimal supported %s", TST_MIN_KVER);
> > > +}

> > @Cyril @Petr I'm wondering if this should be tst_res(TWARN, ..) instead.

> Sorry missed that, yes, that was the point I was trying to make, that
> this shouldn't exit the test. Only produce a message.

As I pointed in v1 even tst_res(TWARN) might be too aggressive as it makes all
tests exit with 4 (=> non-zero) due TWARN.

tst_res(TINFO, "WARNING: ...") would not do that and still warn users.

But since we at SUSE are probably the users of the oldest kernels we don't have
to worry that much. (+ I know it's already merged.)

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-09-11 10:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-04  9:34 [LTP] [PATCH v2] lib: Check minimal supported kernel version Andrea Cervesato
2026-09-04  9:44 ` Li Wang
2026-09-10 14:44   ` Cyril Hrubis
2026-09-04 10:41 ` [LTP] " linuxtestproject.agent
2026-09-04 10:45   ` Andrea Cervesato via ltp
2026-09-11  6:41 ` [LTP] [PATCH v2] " Andrea Cervesato via ltp
2026-09-11  6:44   ` Cyril Hrubis
2026-09-11 10:12     ` Petr Vorel [this message]
2026-09-11  7:16 ` Andrea Cervesato 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=20260911101252.GA1443368@pevik \
    --to=pvorel@suse.cz \
    --cc=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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