[PATCH] test/py/tests/test_bootstage.py: Combine stash/unstash tests

Tom Rini trini at konsulko.com
Wed Sep 25 01:40:42 CEST 2024


On Wed, 28 Aug 2024 16:56:10 -0600, Tom Rini wrote:

> When running the bootstage tests currently we get a warning like:
> tests/test_bootstage.py::test_bootstage_stash
> ...PytestReturnNotNoneWarning: Expected None, but tests/test_bootstage.py::test_bootstage_stash returned (37748736, 4096), which will be an error in a future version of pytest.  Did you mean to use `assert` in stead of `return`?
> 
> This is because the unstash test will run the stash test and fetch the
> addr / size from that. Rework the test to be stash and unstash and then
> run the unstash command at the end of the current stash test.
> 
> [...]

Applied to u-boot/next, thanks!

-- 
Tom




More information about the U-Boot mailing list