From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] mmc tests incorrectly implemented
Date: Wed, 10 Apr 2019 12:40:04 -0400 [thread overview]
Message-ID: <20190410164004.GU4664@bill-the-cat> (raw)
In-Reply-To: <5e0319db-6724-2c99-501b-57a9698b07a4@gmail.com>
On Wed, Apr 10, 2019 at 06:23:46PM +0200, Marek Vasut wrote:
> On 4/10/19 5:12 PM, Stephen Warren wrote:
>
> Hi,
>
> it would be nice if I was CCed on this.
>
> > I see that some mmc tests have been added to test/py, but I see problems
> > with them:
> >
> > 1) test_mmc_rescan assumes that each entry in env__mmc_rd_configs is a
> > separate device that can be rescanned. This isn't actually true; entries
> > in that array are intended to drive the mmc read test, and so can point
> > at partitions or specific sector numbers.
>
> Is that documented somewhere ? I assumed they are separate devices and
> if you need to test multiple partitions, you will have multiple entries
> in this array, one for each device:partition pair.
>
> > Running an mmc rescan test on
> > the entire array results in duplicated tests. A new data array should be
> > created for different tests.
>
> I don't have such a usecase, but the fix should be easy to implement.
> Can you do that ?
>
> > 2) It relies on test data that was not previously required. In
> > particular, I see new test failures because the "info_device" key is now
> > required. New tests should either (a) use new optional data arrays to
> > configure their operation, or (b) access any new data in an optional
> > way, skipping the test if it's not present, so as not to cause test
> > failures.
>
> Either that, or update your tests. Can you submit a patch for this ?
>
> > Also, shouldn't things like new tests be announced to the board
> > maintainers list, so that people can update their test/py configurations
> > to enable new tests if they're appropriate for their platform?
>
> I don't know , should it ?
On me, yes, this is probably something worth poking folks on the board
maintainers ML about, especially once it's shown useful on two SoCs :)
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190410/57bbf049/attachment.sig>
next prev parent reply other threads:[~2019-04-10 16:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-10 15:12 [U-Boot] mmc tests incorrectly implemented Stephen Warren
2019-04-10 16:23 ` Marek Vasut
2019-04-10 16:40 ` Tom Rini [this message]
2019-04-10 17:13 ` Stephen Warren
2019-04-10 17:22 ` Tom Rini
2019-04-10 18:09 ` Stephen Warren
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=20190410164004.GU4664@bill-the-cat \
--to=trini@konsulko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox