All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: T Karthik Reddy <tkarthik@xilinx.com>
Cc: Ashok Reddy Soma <ashokred@xilinx.com>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	"miquel.raynal@bootlin.com" <miquel.raynal@bootlin.com>,
	git <git@xilinx.com>
Subject: Re: [PATCH] test/py: tpm2: Skip tpm pytest based on env variable
Date: Thu, 5 Aug 2021 09:22:46 -0400	[thread overview]
Message-ID: <20210805132246.GJ858@bill-the-cat> (raw)
In-Reply-To: <BY5PR02MB6739A83D60EA78D54EF7F361A5F29@BY5PR02MB6739.namprd02.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

On Thu, Aug 05, 2021 at 05:56:50AM +0000, T Karthik Reddy wrote:
> Hello Tom Rini,
> 
> > -----Original Message-----
> > From: Tom Rini <trini@konsulko.com>
> > Sent: Wednesday, August 4, 2021 8:52 PM
> > To: Ashok Reddy Soma <ashokred@xilinx.com>
> > Cc: u-boot@lists.denx.de; miquel.raynal@bootlin.com; git <git@xilinx.com>;
> > T Karthik Reddy <tkarthik@xilinx.com>
> > Subject: Re: [PATCH] test/py: tpm2: Skip tpm pytest based on env variable
> > 
> > On Fri, Jul 23, 2021 at 06:18:26AM -0600, Ashok Reddy Soma wrote:
> > 
> > > From: T Karthik Reddy <t.karthik.reddy@xilinx.com>
> > >
> > > Tpm test cases relies on tpm device setup. Provide an environment
> > > variable "env__tpm_device_test_skip = True" to skip the test case if
> > > tpm device is not present.
> > > Only needed will have to add variable to the py-test framework.
> > > Test runs successfully even this variable is absent.
> > >
> > > Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
> > > Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
> > 
> > Why is this not using boardenv_* like other tests do to disable running?
> 
> What I meant here was this test doesn't depend on configuration value from boardenv_*. But it uses env__tpm_device_test_skip
> variable from the configuration file. 
> I referred test/py/tests/test_sleep.py for writing this test case, hence copied comments as well.
> Should I change this NOTE in comment section?

Thanks for explaining.  This got me to re-read the existing tests and
while none of it is as clear as I would like, your example here is just
as clear as the rest, so it's fine and I'll pick it up soon.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2021-08-05 13:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-23 12:18 [PATCH] test/py: tpm2: Skip tpm pytest based on env variable Ashok Reddy Soma
2021-08-03  6:56 ` T Karthik Reddy
2021-08-04 15:21 ` Tom Rini
2021-08-05  5:56   ` T Karthik Reddy
2021-08-05 13:22     ` Tom Rini [this message]
2021-09-17 11:49       ` T Karthik Reddy
2021-09-17 12:08         ` Tom Rini
2021-09-18  9:48           ` Ilias Apalodimas
2021-09-20 15:41             ` Michal Simek
2021-09-20 16:06               ` Ilias Apalodimas
2021-09-24 18:29 ` Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2021-06-22  5:49 T Karthik Reddy
2021-07-06  3:59 ` T Karthik Reddy

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=20210805132246.GJ858@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=ashokred@xilinx.com \
    --cc=git@xilinx.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=tkarthik@xilinx.com \
    --cc=u-boot@lists.denx.de \
    /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.