From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Mon, 19 Dec 2022 22:32:42 +0000 (-0500)
Subject: patman: add pytest configuration file
X-Git-Tag: v2025.01-rc5-pxa1908~1158^2~2^2~10
X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=a3997a0a00a03a85fd0ad4ca147763f17ba88b5b;p=u-boot.git

patman: add pytest configuration file

With this change, a user can run the patman test suite using Pytest
the same as when using 'patman test':

    $ cd tools/patman && pytest
    [...]
    44 passed, 8 warnings in 8.87s

    $ ./patman test
    Ran 44 tests in 8.460s

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
---

diff --git a/tools/patman/pytest.ini b/tools/patman/pytest.ini
new file mode 100644
index 0000000000..df3eb518d0
--- /dev/null
+++ b/tools/patman/pytest.ini
@@ -0,0 +1,2 @@
+[pytest]
+addopts = --doctest-modules