All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] test: correct entry point to pytest
@ 2021-01-28 11:46 Heinrich Schuchardt
  2021-01-28 12:58 ` Tom Rini
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Heinrich Schuchardt @ 2021-01-28 11:46 UTC (permalink / raw)
  To: u-boot

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>
---
 test/py/test.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/py/test.py b/test/py/test.py
index bee88d96bc..285fda5425 100755
--- a/test/py/test.py
+++ b/test/py/test.py
@@ -10,11 +10,11 @@
 import os
 import os.path
 import sys
+import pytest
 from pkg_resources import load_entry_point

-# argv; py.test test_directory_name user-supplied-arguments
-args = [os.path.dirname(__file__) + '/tests']
-args.extend(sys.argv)
-
 if __name__ == '__main__':
-    sys.exit(load_entry_point('pytest', 'console_scripts', 'pytest')(args))
+    # argv; py.test test_directory_name user-supplied-arguments
+    args = [os.path.dirname(__file__) + '/tests']
+    args.extend(sys.argv)
+    sys.exit(pytest.main(args))
--
2.29.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH] test: correct entry point to pytest
  2021-01-28 11:46 [PATCH] test: correct entry point to pytest Heinrich Schuchardt
@ 2021-01-28 12:58 ` Tom Rini
  2021-01-28 13:28   ` Heinrich Schuchardt
  2021-01-28 18:23 ` Andy Shevchenko
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Tom Rini @ 2021-01-28 12:58 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 28, 2021 at 12:46:11PM +0100, Heinrich Schuchardt wrote:

> 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>
> ---
>  test/py/test.py | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

So the last round of "newer pytest means we need to ..." was part of why
we have test/py/requirements.txt right now.  That was over a year ago.
So, for after v2021.04 it would be good to update pytest to current and
deal with any updating that needs updating in our tests and related
code.  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210128/4795b141/attachment.sig>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] test: correct entry point to pytest
  2021-01-28 12:58 ` Tom Rini
@ 2021-01-28 13:28   ` Heinrich Schuchardt
  2021-01-28 16:17     ` Tom Rini
  0 siblings, 1 reply; 10+ messages in thread
From: Heinrich Schuchardt @ 2021-01-28 13:28 UTC (permalink / raw)
  To: u-boot

On 28.01.21 13:58, Tom Rini wrote:
> On Thu, Jan 28, 2021 at 12:46:11PM +0100, Heinrich Schuchardt wrote:
>
>> 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>
>> ---
>>  test/py/test.py | 10 +++++-----
>>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> So the last round of "newer pytest means we need to ..." was part of why
> we have test/py/requirements.txt right now.  That was over a year ago.
> So, for after v2021.04 it would be good to update pytest to current and
> deal with any updating that needs updating in our tests and related
> code.  Thanks!
>

This patch is not about making new requirements. It is about increasing
the compatibility of our Python script with a larger range of Pytest
revisions.

So I do not see the show-stopper for the current release.

Best regards

Heinrich

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] test: correct entry point to pytest
  2021-01-28 13:28   ` Heinrich Schuchardt
@ 2021-01-28 16:17     ` Tom Rini
  2021-01-28 18:36       ` Heinrich Schuchardt
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Rini @ 2021-01-28 16:17 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 28, 2021 at 02:28:03PM +0100, Heinrich Schuchardt wrote:
> On 28.01.21 13:58, Tom Rini wrote:
> > On Thu, Jan 28, 2021 at 12:46:11PM +0100, Heinrich Schuchardt wrote:
> >
> >> 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>
> >> ---
> >>  test/py/test.py | 10 +++++-----
> >>  1 file changed, 5 insertions(+), 5 deletions(-)
> >
> > So the last round of "newer pytest means we need to ..." was part of why
> > we have test/py/requirements.txt right now.  That was over a year ago.
> > So, for after v2021.04 it would be good to update pytest to current and
> > deal with any updating that needs updating in our tests and related
> > code.  Thanks!
> >
> 
> This patch is not about making new requirements. It is about increasing
> the compatibility of our Python script with a larger range of Pytest
> revisions.
> 
> So I do not see the show-stopper for the current release.

I bring up the last time because we support using "pip install -r
test/py/requirements.txt" as how to create the supported test
environment.  This is based on my understanding of the time of the best
practices of dealing with python modules.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210128/66359715/attachment.sig>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] test: correct entry point to pytest
  2021-01-28 11:46 [PATCH] test: correct entry point to pytest Heinrich Schuchardt
  2021-01-28 12:58 ` Tom Rini
@ 2021-01-28 18:23 ` Andy Shevchenko
  2021-01-28 19:36 ` Andy Shevchenko
  2021-01-30 19:21 ` Tom Rini
  3 siblings, 0 replies; 10+ messages in thread
From: Andy Shevchenko @ 2021-01-28 18:23 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 28, 2021 at 1:46 PM Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> 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.
>

Thanks for the patch!

And +1 that we shouldn't avoid the package == version as much as
possible. Distros provide a version and if Python doesn't have a
capability to provide a way how to do above conditionally to the
version, then probably we have to drop Python crap and use better
language for the test cases that must be robust.

> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  test/py/test.py | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/test/py/test.py b/test/py/test.py
> index bee88d96bc..285fda5425 100755
> --- a/test/py/test.py
> +++ b/test/py/test.py
> @@ -10,11 +10,11 @@
>  import os
>  import os.path
>  import sys
> +import pytest
>  from pkg_resources import load_entry_point
>
> -# argv; py.test test_directory_name user-supplied-arguments
> -args = [os.path.dirname(__file__) + '/tests']
> -args.extend(sys.argv)
> -
>  if __name__ == '__main__':
> -    sys.exit(load_entry_point('pytest', 'console_scripts', 'pytest')(args))
> +    # argv; py.test test_directory_name user-supplied-arguments
> +    args = [os.path.dirname(__file__) + '/tests']
> +    args.extend(sys.argv)
> +    sys.exit(pytest.main(args))
> --
> 2.29.2
>


-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] test: correct entry point to pytest
  2021-01-28 16:17     ` Tom Rini
@ 2021-01-28 18:36       ` Heinrich Schuchardt
  2021-01-28 23:56         ` Tom Rini
  0 siblings, 1 reply; 10+ messages in thread
From: Heinrich Schuchardt @ 2021-01-28 18:36 UTC (permalink / raw)
  To: u-boot

On 1/28/21 5:17 PM, Tom Rini wrote:
> On Thu, Jan 28, 2021 at 02:28:03PM +0100, Heinrich Schuchardt wrote:
>> On 28.01.21 13:58, Tom Rini wrote:
>>> On Thu, Jan 28, 2021 at 12:46:11PM +0100, Heinrich Schuchardt wrote:
>>>
>>>> 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>
>>>> ---
>>>>   test/py/test.py | 10 +++++-----
>>>>   1 file changed, 5 insertions(+), 5 deletions(-)
>>>
>>> So the last round of "newer pytest means we need to ..." was part of why
>>> we have test/py/requirements.txt right now.  That was over a year ago.
>>> So, for after v2021.04 it would be good to update pytest to current and
>>> deal with any updating that needs updating in our tests and related
>>> code.  Thanks!
>>>
>>
>> This patch is not about making new requirements. It is about increasing
>> the compatibility of our Python script with a larger range of Pytest
>> revisions.
>>
>> So I do not see the show-stopper for the current release.
>
> I bring up the last time because we support using "pip install -r
> test/py/requirements.txt" as how to create the supported test
> environment.  This is based on my understanding of the time of the best
> practices of dealing with python modules.

As you have read in the replies to that discussion it is not only me who
due to security considerations will not run pip on his private computer
but wants to use the packages from the distro.

This patch does not break anything. Hence I would appreciate if you
could consider it for inclusion.

This does not stop you or Gitlab to use pip with your favorite Pytest
version.

Best regards

Heinrich

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] test: correct entry point to pytest
  2021-01-28 11:46 [PATCH] test: correct entry point to pytest Heinrich Schuchardt
  2021-01-28 12:58 ` Tom Rini
  2021-01-28 18:23 ` Andy Shevchenko
@ 2021-01-28 19:36 ` Andy Shevchenko
  2021-01-30 19:21 ` Tom Rini
  3 siblings, 0 replies; 10+ messages in thread
From: Andy Shevchenko @ 2021-01-28 19:36 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 28, 2021 at 1:46 PM Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> 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.

Tested-by: Andy Shevchenko <andy.shevchenko@gmail.com>

> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  test/py/test.py | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/test/py/test.py b/test/py/test.py
> index bee88d96bc..285fda5425 100755
> --- a/test/py/test.py
> +++ b/test/py/test.py
> @@ -10,11 +10,11 @@
>  import os
>  import os.path
>  import sys
> +import pytest
>  from pkg_resources import load_entry_point
>
> -# argv; py.test test_directory_name user-supplied-arguments
> -args = [os.path.dirname(__file__) + '/tests']
> -args.extend(sys.argv)
> -
>  if __name__ == '__main__':
> -    sys.exit(load_entry_point('pytest', 'console_scripts', 'pytest')(args))
> +    # argv; py.test test_directory_name user-supplied-arguments
> +    args = [os.path.dirname(__file__) + '/tests']
> +    args.extend(sys.argv)
> +    sys.exit(pytest.main(args))
> --
> 2.29.2
>


-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] test: correct entry point to pytest
  2021-01-28 18:36       ` Heinrich Schuchardt
@ 2021-01-28 23:56         ` Tom Rini
  2021-01-29  9:59           ` Andy Shevchenko
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Rini @ 2021-01-28 23:56 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 28, 2021 at 07:36:53PM +0100, Heinrich Schuchardt wrote:
> On 1/28/21 5:17 PM, Tom Rini wrote:
> > On Thu, Jan 28, 2021 at 02:28:03PM +0100, Heinrich Schuchardt wrote:
> > > On 28.01.21 13:58, Tom Rini wrote:
> > > > On Thu, Jan 28, 2021 at 12:46:11PM +0100, Heinrich Schuchardt wrote:
> > > > 
> > > > > 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>
> > > > > ---
> > > > >   test/py/test.py | 10 +++++-----
> > > > >   1 file changed, 5 insertions(+), 5 deletions(-)
> > > > 
> > > > So the last round of "newer pytest means we need to ..." was part of why
> > > > we have test/py/requirements.txt right now.  That was over a year ago.
> > > > So, for after v2021.04 it would be good to update pytest to current and
> > > > deal with any updating that needs updating in our tests and related
> > > > code.  Thanks!
> > > > 
> > > 
> > > This patch is not about making new requirements. It is about increasing
> > > the compatibility of our Python script with a larger range of Pytest
> > > revisions.
> > > 
> > > So I do not see the show-stopper for the current release.
> > 
> > I bring up the last time because we support using "pip install -r
> > test/py/requirements.txt" as how to create the supported test
> > environment.  This is based on my understanding of the time of the best
> > practices of dealing with python modules.
> 
> As you have read in the replies to that discussion it is not only me who
> due to security considerations will not run pip on his private computer
> but wants to use the packages from the distro.
> 
> This patch does not break anything. Hence I would appreciate if you
> could consider it for inclusion.
> 
> This does not stop you or Gitlab to use pip with your favorite Pytest
> version.

In that this does not lead to a backwards incompatible change (like we
had previously), this falls in to the category of changes that fix
problems some people see, even if it's not the default case.  So yes, I
will pick this up as part of picking up general fixes.

And as I've thrown this at everything-new (to see what happens there) +
sandbox, as well as my regular lab of testing with the old version and
everything is fine:

Tested-by: Tom Rini <trini@konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210128/3e0629ca/attachment.sig>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] test: correct entry point to pytest
  2021-01-28 23:56         ` Tom Rini
@ 2021-01-29  9:59           ` Andy Shevchenko
  0 siblings, 0 replies; 10+ messages in thread
From: Andy Shevchenko @ 2021-01-29  9:59 UTC (permalink / raw)
  To: u-boot

On Fri, Jan 29, 2021 at 1:56 AM Tom Rini <trini@konsulko.com> wrote:
> On Thu, Jan 28, 2021 at 07:36:53PM +0100, Heinrich Schuchardt wrote:
> > On 1/28/21 5:17 PM, Tom Rini wrote:

...

> > As you have read in the replies to that discussion it is not only me who
> > due to security considerations will not run pip on his private computer
> > but wants to use the packages from the distro.
> >
> > This patch does not break anything. Hence I would appreciate if you
> > could consider it for inclusion.
> >
> > This does not stop you or Gitlab to use pip with your favorite Pytest
> > version.
>
> In that this does not lead to a backwards incompatible change (like we
> had previously), this falls in to the category of changes that fix
> problems some people see, even if it's not the default case.  So yes, I
> will pick this up as part of picking up general fixes.

Thanks, Tom!

> And as I've thrown this at everything-new (to see what happens there) +
> sandbox, as well as my regular lab of testing with the old version and
> everything is fine:
>
> Tested-by: Tom Rini <trini@konsulko.com>


-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] test: correct entry point to pytest
  2021-01-28 11:46 [PATCH] test: correct entry point to pytest Heinrich Schuchardt
                   ` (2 preceding siblings ...)
  2021-01-28 19:36 ` Andy Shevchenko
@ 2021-01-30 19:21 ` Tom Rini
  3 siblings, 0 replies; 10+ messages in thread
From: Tom Rini @ 2021-01-30 19:21 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 28, 2021 at 12:46:11PM +0100, Heinrich Schuchardt wrote:

> 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>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210130/1ca2ebe9/attachment.sig>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-30 19:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28 11:46 [PATCH] test: correct entry point to pytest Heinrich Schuchardt
2021-01-28 12:58 ` Tom Rini
2021-01-28 13:28   ` Heinrich Schuchardt
2021-01-28 16:17     ` Tom Rini
2021-01-28 18:36       ` Heinrich Schuchardt
2021-01-28 23:56         ` Tom Rini
2021-01-29  9:59           ` Andy Shevchenko
2021-01-28 18:23 ` Andy Shevchenko
2021-01-28 19:36 ` Andy Shevchenko
2021-01-30 19:21 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.