From: Tom Rini Date: Wed, 8 Jan 2020 15:13:08 -0500 Subject: [PATCH] cmd_ut: add a parameter prefix to the function cmd_ut_category In-Reply-To: <1576606024-5164-1-git-send-email-philippe.reynes@softathome.com> References: <1576606024-5164-1-git-send-email-philippe.reynes@softathome.com> Message-ID: <20200108201308.GR31026@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Dec 17, 2019 at 07:07:04PM +0100, Philippe Reynes wrote: > There is black magic in the file conftest.py that list > all the test unit. Then, all those test unit are called > in pytest. This call is done with the end of the name > (for example checksum if the full name is bloblist_test_checksum). > > The result is that only test for dm are really executed. > by pytest, all others tests are listed but never executed. > > This behaviour happens because the dm test unit only check > the end of the name and others tests checks the full name. > > To fix this issue, I've added a prefix to the function > cmd_ut_category, and this prefix is removed when looking > for the unit test. > > Signed-off-by: Philippe Reynes > Tested-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: