From: Petr Vorel <pvorel@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2 2/2] tst_test.sh: Convert only TBROK/TCONF to TWARN in cleanup
Date: Mon, 5 Jan 2026 15:24:16 +0100 [thread overview]
Message-ID: <20260105142416.GG654507@pevik> (raw)
In-Reply-To: <DF1CO0LSLWLZ.36NGISAN8GB9T@suse.com>
Hi Andrea,
...
> > + if [ "$TST_TBROK_TO_TWARN" = 1 ]; then
> > + if [ "$res" != TBROK -a "$res" != TCONF ]; then
> > + tst_res TWARN "tst_brk can be called only with TBROK or TCONF ($res, msg: '$@')"
> > + else
> > + tst_res TWARN "$@"
> > + fi
> > return
> > + fi
> > +
> > + if [ "$res" != TBROK -a "$res" != TCONF ]; then
> > + tst_res TBROK "tst_brk can be called only with TBROK or TCONF ($res, msg: '$@')"
> > else
> > tst_res "$res" "$@"
> > fi
> Here there's a bit of code duplication. For instance, we can save the
> message inside a variable, as well as the T-flag, the use it accordingly
> to TST_TBROK_TO_TWARN.
Sure, this could be done, but as for other tst_test.sh modifications: unless
it's an important fix I'd not touch it as we now have a shell loader. Again,
I'm sorry to waste your time for the review.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2026-01-05 14:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-11 20:57 [LTP] [PATCH v2 1/2] tst_test.sh: Fix TBROK => TWARN evaluation in tst_brk() Petr Vorel
2025-02-11 20:57 ` [LTP] [PATCH v2 2/2] tst_test.sh: Convert only TBROK/TCONF to TWARN in cleanup Petr Vorel
2025-12-18 12:43 ` Andrea Cervesato via ltp
2026-01-05 14:24 ` Petr Vorel [this message]
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=20260105142416.GG654507@pevik \
--to=pvorel@suse.cz \
--cc=andrea.cervesato@suse.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.