All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avinesh Kumar <akumar@suse.de>
To: Petr Vorel <pvorel@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 1/1] cgroup_lib.sh: Improve error messages
Date: Wed, 16 Apr 2025 10:51:53 +0200	[thread overview]
Message-ID: <12664748.O9o76ZdvQC@thinkpad> (raw)
In-Reply-To: <20250416084057.GB577362@pevik>

On Wednesday, April 16, 2025 10:40:57 AM CEST Petr Vorel wrote:
> Hi Li,
> 
> > > +++ b/testcases/kernel/controllers/cgroup_lib.sh
> > > @@ -119,12 +119,12 @@ cgroup_require()
> > >         ret=$?
> 
> > >         if [ $ret -eq 32 ]; then
> > > -               tst_brk TCONF "'tst_cgctl require' exited. Controller is
> > > probably not available?"
> > > +               tst_brk TCONF "'tst_cgctl require $ctrl' exited. $ctrl
> > > controller not available?"
> 
> 
> > s/exited/existed
> 
> I understood that "exited" which was used previously was meant to be "exited
> with non-zero" (I can improve it this way to be more precise). Do you really
> think it's in TCONF related to controller existed?  I actually mean the opposite
> - one wants controller which does not exist due not configured in the kernel.
> 
I was also writing the same.
I think we should just change it to 'failed' as you did below.


Reviewed-by: Avinesh Kumar <akumar@suse.de>


> Kind regards,
> Petr
> 
> 
> > >                 return $ret
> > >         fi
> 
> > >         if [ $ret -ne 0 ]; then
> > > -               tst_brk TBROK "'tst_cgctl require' exited"
> > > +               tst_brk TBROK "'tst_cgctl require $ctrl' failed. LTP
> > > missing $ctrl controller support?"
> > >                 return $ret
> > >         fi
> 

Regards,
Avinesh




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

  reply	other threads:[~2025-04-16  8:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-16  7:21 [LTP] [PATCH 1/1] cgroup_lib.sh: Improve error messages Petr Vorel
2025-04-16  7:33 ` Li Wang via ltp
2025-04-16  7:34 ` Li Wang via ltp
2025-04-16  8:40   ` Petr Vorel
2025-04-16  8:51     ` Avinesh Kumar [this message]
2025-04-17  6:52       ` Petr Vorel
2025-04-16  8:52     ` Li Wang 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=12664748.O9o76ZdvQC@thinkpad \
    --to=akumar@suse.de \
    --cc=ltp@lists.linux.it \
    --cc=pvorel@suse.cz \
    /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.