summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-01-28 12:46:11 +0100
committerTom Rini <trini@konsulko.com>2021-01-29 10:36:49 -0500
commit89d52afa5d0b643bddbedd840cea98ea7cba84f9 (patch)
treec49f00b64173ac7a265322535a6eb5d594b44eef /arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
parent34d7f72a1db0226d083a131b565ed294eeae9c48 (diff)
downloadu-boot-89d52afa5d0b643bddbedd840cea98ea7cba84f9.tar.gz
u-boot-89d52afa5d0b643bddbedd840cea98ea7cba84f9.tar.xz
u-boot-89d52afa5d0b643bddbedd840cea98ea7cba84f9.zip
test: correct entry point to pytest
With Pytest 6.0.2 'make tests' fails: sandbox: Traceback (most recent call last): File "./test/py/test.py", line 20, in <module> sys.exit(load_entry_point('pytest', 'console_scripts', 'pytest')(args)) TypeError: console_main() takes 0 positional arguments but 1 was given The definition of console_scripts has changed as follows: Pytest 4.6.1: [options.entry_points] console_scripts =         pytest=pytest:main         py.test=pytest:main          Pytest 6.0.2:          [options.entry_points] console_scripts = pytest=pytest:console_main py.test=pytest:console_main The new function console_main() has a comment: "This function is not meant for programmable use; use `main()`" Hence let's call pytest.main() directly. Move args processing into the __main__ paragraph. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Tested-by: Andy Shevchenko <andy.shevchenko@gmail.com> Tested-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c')
0 files changed, 0 insertions, 0 deletions