]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
patman: add pytest configuration file
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 19 Dec 2022 22:32:42 +0000 (17:32 -0500)
committerSimon Glass <sjg@chromium.org>
Fri, 6 Jan 2023 02:21:57 +0000 (19:21 -0700)
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>
tools/patman/pytest.ini [new file with mode: 0644]

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