Path: csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Soren Stoutner Newsgroups: linux.debian.maint.python Subject: Correct command to skip multiple tests in autopkgtest? Date: Sat, 02 Nov 2024 00:10:01 +0100 Message-ID: X-Original-To: Debian Python Team X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Nov 1 23:04:14 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-114.93 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.421, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no Organization: Debian MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1897773.4Yan60D6vR"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Debian-User: soren X-Mailing-List: archive/latest/22505 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/2952489.034xB63fYD@soren-desktop Approved: robomod@news.nic.it Lines: 100 Sender: robomod@news.nic.it X-Original-Date: Fri, 01 Nov 2024 16:03:45 -0700 X-Original-Message-ID: <2952489.034xB63fYD@soren-desktop> Xref: csiph.com linux.debian.maint.python:16435 --nextPart1897773.4Yan60D6vR Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Soren Stoutner To: Debian Python Team Subject: Correct command to skip multiple tests in autopkgtest? Date: Fri, 01 Nov 2024 16:03:45 -0700 Message-ID: <2952489.034xB63fYD@soren-desktop> Organization: Debian MIME-Version: 1.0 I am in the process of packaging pyinstaller. https://pypi.org/project/pyinstaller/ Many of pyinstaller=E2=80=99s tests require the pyinstaller-hooks-contrib p= ackage,=20 which I am also in the process of packaging. https://pypi.org/project/pyinstaller-hooks-contrib/ But pyinstaller-hooks-contrib depends on pyinstaller for its tests. In order to bootstrap the introduction of these packages into Debian, I am= =20 temporarily disabling the pyinstaller tests that depend on pyinstaller-hook= s- contrib using the following command in debian/rules: export PYBUILD_TEST_ARGS=3D-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' This works successfully during the build process: 1004 passed, 286 skipped, 25 deselected, 24 xfailed, 1 xpassed, 17 warnings= in=20 6969.97s (1:56:09) https://salsa.debian.org/soren/python-pyinstaller/-/jobs/6514811#L6635 But, for some reason, autopkgtest doesn=E2=80=99t like the format of the ar= guments. I: pybuild base:311: cd /tmp/autopkgtest-lxc.ntf_swjm/downtmp/autopkgtest_t= mp/ build; python3.12 -m pytest -k 'not test_find_module and not=20 test_metadata_searching and not test_Qt_QTranslate and not test_zeep and no= t=20 test_scapy3 and not test_zope_interface and not test_gevent and not=20 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_modu= le=20 and not test_metadata_searching and not test_Qt_QTranslate and not test_zee= p=20 and not test_scapy3 and not test_zope_interface and not test_gevent and not= =20 test_user_preferred_locale and not test_pytz' (choose from 'samedir',=20 'subdir', =E2=80=98parentdir=E2=80=99) https://salsa.debian.org/soren/python-pyinstaller/-/jobs/6514819#L781 I have tried several syntax variations without success. Does anyone know t= he=20 correct syntax for skipping several tests in autopgktest? =2D-=20 Soren Stoutner soren@debian.org --nextPart1897773.4Yan60D6vR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAmclXlEACgkQwufLJ66w tgOcCQ/7B5e1il4qQGW6yDRJtUrpBiUtcPv+yaEg9hMckRNTFFgKOzvHCh4vDgF1 p1dy7bLIh8lrcVxw82vFa0R7+UzfFpuiDGTL1yHVLFiC6McqNBhROnH+/qfKyw9P LT8wej1qafB8ZuyL8JFoOI9fNsZvtFltEDbMQXzOv67XuOCcG+MvZtbqvEELDrYb HwgZE6zKGVhPunu2MqekBjHHVKGE5kViRdQjrKTCe9T1ib2qFfZFt82f3bklg/+e lxLaTi3M4lzQy8BW6auQGG0tXYhX4uHjJF52F8bAaMoVb80RBP1KlkEZmUKbet6T tNemxjNnw7l+MBmFGTMF7cXfXoUJ6FO7XCfAljIw7o8GvOr8SKujlF03BOjgr1kt 3dLBybf1G0Te2wfsUk3g/smeeACQhCKtN21Wa0P8xs5RkyZ2QXGl8Yu/UbUH4t1R GZUA7QtJvsMZhTXIcg6C/dmxKEcxFP0/v3e9ldj3nSuB5gVmGOVAKudTDKqSefFg qk+hc35CdRepmSZakwDiJ/YqpfUYfwEpTOj0QzHi1TUiIlUAgc0rr+pLSLvnRq2K TvyY1w7ju+edZbCwV3QgUdSFrzjnIaIqZVcUqt7I10/PW+ZT3SnZBXMZbDkeMNId ASUhinQW+YXlR8cBG4oymdMQ/1/uMhYA6HJ60SnzzuePIU6EmUY= =U0Ii -----END PGP SIGNATURE----- --nextPart1897773.4Yan60D6vR--