On 17 May 2024, at 20:47, Ilya Maximets wrote:

> If the python script throws an unexpected exception, the HAVE_PYTEST
> variable remains undefined.  If at the same time dependencies are not
> actually present, pytest tests will fail instead of being skipped.
>
> Define the variable to 'no' on unexpected failures to skip the tests
> when dependencies cannot be verified.
>
> The issue can be reproduced on systems with python 3.12+ in case the
> deprecated 'pkg_resources' module is not available.
>
> Fixes: 445dceb88461 ("python: Introduce unit tests.")
> Signed-off-by: Ilya Maximets <[email protected]>

Thanks for fixing this. The changes looks good to me.

Acked-by: Eelco Chaudron <[email protected]>

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to