From: Tom Rini Date: Sat, 16 Jan 2021 12:11:32 -0500 Subject: [PATCH 1/3] test: cmd_ut_category: raise a error when the test is not found In-Reply-To: <20201119090843.5614-1-patrick.delaunay@st.com> References: <20201119090843.5614-1-patrick.delaunay@st.com> Message-ID: <20210116171132.GA15284@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 Thu, Nov 19, 2020 at 10:08:41AM +0100, Patrick Delaunay wrote: > Raise an error when test is not found, for example with manual test > with bad test name, as following, doesn't raise an error > > => ut lib bad > Failures: 0 > > After the patch: > > => ut lib bad > lib test bad not found > Failures: 1 > > This patch allows also to detect tests which don't respect the expected > format with "prefix" used in cmd_ut_category and defined in ut_subtest > (./test/py/conftest.py). When I execute "make qcheck" this patch detects > 2 issues, corrected by the 2 next patches. > > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass This is a great idea, which I cannot apply right now as it shows the setexpr tests aren't right. So, I'll try and look in to that if someone else doesn't get there first. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: