[PATCH -next] test/py/test_mmc: wrap multi-argument printf-style strings

Tom Rini trini at konsulko.com
Thu Jun 19 20:18:46 CEST 2025


On Thu, Jun 19, 2025 at 12:15:29PM -0500, Bryan Brattlof wrote:
> On June 19, 2025 thus sayeth Tom Rini:
> > On Thu, Jun 19, 2025 at 06:45:05AM -0500, Bryan Brattlof wrote:
> > 
> > > Newer versions of python will emit a TypeError about not enough
> > > arguments for a format string:
> > > 
> > >     FAILED ub/test/py/tests/test_mmc.py::test_mmc_dev - TypeError: not enough arguments for format string
> > >     FAILED ub/test/py/tests/test_mmc.py::test_mmcinfo - TypeError: not enough arguments for format string
> > >     FAILED ub/test/py/tests/test_mmc.py::test_mmc_info - TypeError: not enough arguments for format string
> > >     FAILED ub/test/py/tests/test_mmc.py::test_mmc_rescan - TypeError: not enough arguments for format string
> > >     FAILED ub/test/py/tests/test_mmc.py::test_mmc_part - TypeError: not enough arguments for format string
> > > 
> > > Add parentheses around all multi argument format strings so all
> > > arguments will be passed to the format string
> > > 
> > > Signed-off-by: Bryan Brattlof <bb at ti.com>
> > 
> > Nice! Does this mean you're also running these on hardware somewhere?
> 
> Yep I've got the all of the AM62* variants currently working in labgrid. 
> I'm still trying to flow flush the u-boot-test-hooks scripts in the 
> larger farm TI uses as a more permanent solution. But things are getting 
> closer to fully automated :)

Oh very nice, glad to see it.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250619/30ec3176/attachment.sig>


More information about the U-Boot mailing list