Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #16444
| Path | csiph.com!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Julian Gilbey <julian@d-and-j.net> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Correct command to skip multiple tests in autopkgtest? |
| Date | Mon, 11 Nov 2024 21:20:01 +0100 |
| Message-ID | <JHJ3b-8gdv-7@gated-at.bofh.it> (permalink) |
| References | <JE8Wd-5ZHa-5@gated-at.bofh.it> <JFVLc-76cf-13@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Mon Nov 11 20:18:31 2024 |
| Old-Return-Path | <julian@d-and-j.net> |
| X-Amavis-Spam-Status | No, score=-7.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -4.6 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/22518 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/ZzJmhOLKupxFGyE4@d-and-j.net |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Debian Python Team <debian-python@lists.debian.org> |
| X-Original-Date | Mon, 11 Nov 2024 20:18:12 +0000 |
| X-Original-Message-ID | <ZzJmhOLKupxFGyE4@d-and-j.net> |
| X-Original-References | <2952489.034xB63fYD@soren-desktop> <2524627.IqhbeH025v@soren-desktop> |
| Xref | csiph.com linux.debian.maint.python:16444 |
Show key headers only | View raw
On Wed, Nov 06, 2024 at 02:29:34PM -0700, Soren Stoutner wrote:
> On Friday, November 1, 2024 4:03:45 PM MST Soren Stoutner wrote:
> > I: pybuild base:311: cd /tmp/autopkgtest-lxc.ntf_swjm/downtmp/
> autopkgtest_tmp/
> > build; python3.12 -m pytest -k 'not test_find_module and not
> > test_metadata_searching and not test_Qt_QTranslate and not test_zeep and not
> > test_scapy3 and not test_zope_interface and not test_gevent and not
> > test_user_preferred_locale and not test_pytz'
> > usage: __main__.py [-h] [--link-only] {samedir,subdir,parentdir}
> > __main__.py: error: argument test_type: invalid choice: 'not test_find_module
> > and not test_metadata_searching and not test_Qt_QTranslate and not test_zeep
> > and not test_scapy3 and not test_zope_interface and not test_gevent and not
> > test_user_preferred_locale and not test_pytz' (choose from 'samedir',
> > 'subdir', ‘parentdir’)
>
> My experience with another package is that -k works correctly with autopkgtest
> when skipping only one test. The problem appears to be something related to
> parsing multiple tests to skip. I have tried a couple of syntax variations,
> but so far haven’t been able to guess the right one.
You could have a look at what I've done in pydevd (soon to be removed
from the archive), which was a complex case. But I'd suggest using
the syntax
--deselect=tests/test_file.py::test_testname
instead of -k; it can be given multiple times, and as long as there
are no spaces or weird characters in the test names (for example,
tests/test_file.py::test_testname[this is a parameter]), it works fine
when stored as a shell variable and then expanded without quotes.
Best wishes,
Julian
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Correct command to skip multiple tests in autopkgtest? Soren Stoutner <soren@debian.org> - 2024-11-02 00:10 +0100
Re: Correct command to skip multiple tests in autopkgtest? Soren Stoutner <soren@debian.org> - 2024-11-06 22:30 +0100
Re: Correct command to skip multiple tests in autopkgtest? Julian Gilbey <julian@d-and-j.net> - 2024-11-11 21:20 +0100
Re: Correct command to skip multiple tests in autopkgtest? Soren Stoutner <soren@debian.org> - 2024-11-12 19:10 +0100
Re: Correct command to skip multiple tests in autopkgtest? Soren Stoutner <soren@debian.org> - 2024-12-03 01:30 +0100
csiph-web