From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: yegorslists@googlemail.com
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] support/testing: add test for python-pysmb
Date: Sun, 23 Jul 2023 16:51:05 +0200 [thread overview]
Message-ID: <20230723145105.GG2503916@scaer> (raw)
In-Reply-To: <20230723112159.3816711-1-yegorslists@googlemail.com>
Yegor, All,
On 2023-07-23 13:21 +0200, yegorslists--- via buildroot spake thusly:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> DEVELOPERS | 2 ++
> support/testing/tests/package/sample_python_pysmb.py | 2 ++
> support/testing/tests/package/test_python_pysmb.py | 12 ++++++++++++
> 3 files changed, 16 insertions(+)
> create mode 100644 support/testing/tests/package/sample_python_pysmb.py
> create mode 100644 support/testing/tests/package/test_python_pysmb.py
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index a6644819bd..58c8b4c8aa 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -3146,11 +3146,13 @@ F: package/zlog/
> F: support/testing/tests/package/sample_python_dicttoxml2.py
> F: support/testing/tests/package/sample_python_dtschema.py
> F: support/testing/tests/package/sample_python_munch.py
> +F: support/testing/tests/package/sample_python_pysmb.py
> F: support/testing/tests/package/test_libftdi1.py
> F: support/testing/tests/package/test_python_can.py
> F: support/testing/tests/package/test_python_dicttoxml2.py
> F: support/testing/tests/package/test_python_dtschema.py
> F: support/testing/tests/package/test_python_munch.py
> +F: support/testing/tests/package/test_python_pysmb.py
> F: utils/scanpypi
>
> N: Yunhao Tian <t123yh.xyz@gmail.com>
> diff --git a/support/testing/tests/package/sample_python_pysmb.py b/support/testing/tests/package/sample_python_pysmb.py
> new file mode 100644
> index 0000000000..68767f252a
> --- /dev/null
> +++ b/support/testing/tests/package/sample_python_pysmb.py
> @@ -0,0 +1,2 @@
> +from nmb.NetBIOS import NetBIOS
> +from smb.SMBHandler import SMBHandler
$ make check-package
support/testing/tests/package/sample_python_pysmb.py:0: run 'flake8' and fix the warnings
$ flake8 support/testing/tests/package/sample_python_pysmb.py
support/testing/tests/package/sample_python_pysmb.py:1:1: F401 'nmb.NetBIOS.NetBIOS' imported but unused
support/testing/tests/package/sample_python_pysmb.py:2:1: F401 'smb.SMBHandler.SMBHandler' imported but unused
I've fixed that (by adding a # noqa).
Applied to master, thanks.
Regards,
Yann E. MORIN.
> diff --git a/support/testing/tests/package/test_python_pysmb.py b/support/testing/tests/package/test_python_pysmb.py
> new file mode 100644
> index 0000000000..cc4c7fb1e5
> --- /dev/null
> +++ b/support/testing/tests/package/test_python_pysmb.py
> @@ -0,0 +1,12 @@
> +from tests.package.test_python import TestPythonPackageBase
> +
> +
> +class TestPythonPy3Pysmb(TestPythonPackageBase):
> + __test__ = True
> + config = TestPythonPackageBase.config + \
> + """
> + BR2_PACKAGE_PYTHON3=y
> + BR2_PACKAGE_PYTHON_PYSMB=y
> + """
> + sample_scripts = ["tests/package/sample_python_pysmb.py"]
> + timeout = 40
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2023-07-23 14:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-23 11:21 [Buildroot] [PATCH] support/testing: add test for python-pysmb yegorslists--- via buildroot
2023-07-23 14:51 ` Yann E. MORIN [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230723145105.GG2503916@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=yegorslists@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox