
On 12/17/19 7:07 PM, 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 Reynesphilippe.reynes@softathome.com
I added a bug into the test/unicode_ut.c by inverting the logical condition of an assert.
The 'ut all' command inside the sandbox reports the error with and without this patch.
The problem was not reported without your patch when running 'make tests'. With the patch it is reported by 'make tests'.
Tested-by: Heinrich Schuchardt xypron.glpk@gmx.de
Cc-ing Tom as maintainer of REST