Package: pybuild-plugin-autopkgtest
Version: 5.20221205
Severity: normal
Control: affects -1 python-moderngl python-moderngl-glcontext 
python-moderngl-window

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512


Dear fellow DPT members,

the autopkgtest runner ignores PYBUILD_TEST_CUSTOM, which breaks the
test suite for the moderngl packages; they need to be run in a virtual X
server with xvfb-run.

Relevant excerpt from d/rules (not released yet):

    export PYBUILD_TEST_CUSTOM = 1
    export PYBUILD_TEST_ARGS = xvfb-run -a {interpreter} -m pytest -k "not 
test_mass_create"

Relevant excerpt from autopkgtest session:

    autopkgtest [12:06:27]: test pybuild-autopkgtest: pybuild-autopkgtest
    autopkgtest [12:06:27]: test pybuild-autopkgtest: [-----------------------
    I: pybuild base:240: cd /tmp/autopkgtest.sRSdq8/autopkgtest_tmp/build; 
python3.11 -m pytest xvfb-run -a python3.11 -m pytest -k "not test_mass_create"
    ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
    __main__.py: error: unrecognized arguments: -a python3.11
      inifile: None
      rootdir: /tmp/autopkgtest.sRSdq8/autopkgtest_tmp/build

    E: pybuild pybuild:386: test: plugin autopkgtest failed with: exit code=4: 
cd /tmp/autopkgtest.sRSdq8/autopkgtest_tmp/build; python3.11 -m pytest xvfb-run 
-a {interpreter} -m pytest -k "not test_mass_create"
    I: pybuild base:240: cd /tmp/autopkgtest.sRSdq8/autopkgtest_tmp/build; 
python3.10 -m pytest xvfb-run -a python3.10 -m pytest -k "not test_mass_create"
    ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
    __main__.py: error: unrecognized arguments: -a python3.10
      inifile: None
      rootdir: /tmp/autopkgtest.sRSdq8/autopkgtest_tmp/build

    E: pybuild pybuild:386: test: plugin autopkgtest failed with: exit code=4: 
cd /tmp/autopkgtest.sRSdq8/autopkgtest_tmp/build; python3.10 -m pytest xvfb-run 
-a {interpreter} -m pytest -k "not test_mass_create"
    make: *** [/tmp/xwsr3ehK08/run:4: pybuild-autopkgtest] Error 13
    pybuild-autopkgtest: error: /tmp/xwsr3ehK08/run pybuild-autopkgtest 
returned exit code 2
    autopkgtest [12:06:28]: test pybuild-autopkgtest: -----------------------]


Cheers
Timo


-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmORxicACgkQ+C8H+466
LVlKwAwA05iW6qCF59RV8cONsyhTFs+t2KWG7leG7HENnodEr8QwOUCyspQ/u0se
4zXMKFRFIpjR9NRvNR+s7IjIkxYPcF5kKDvAsevxUD4BdjA+aoF6/jIg5ShDyGG4
FTZtVGJFIePMgt7kcndI0UmieXNBNxmdzODc4Weh7zlqpZoMn/NhrtLY6VcJgp4C
z+XxahB00MIbqXWQnVMP/itSdTHrWXJmJ8I49O/bkyLp1jgT4yDslJ5+VDIhYWHr
Y3I2qDT5f417yTjl0j0PG9ddKN9nQBlj49eAQkUd7RPuCBFcrh6lwqNLdXXZ7g8N
5UMKc9GUzZiat6mvcOQ+M1O+z8d4/R5tm9oDzqlpSdR/OdprxBZh7Ia7thBdjGmw
oTxIFFH6RaVil3n13kMwfqOWo7ELXZk5yg3mmoPG4U9Kp9Dziy/wGlAfKysfbtJZ
jWb3jr9KAE/b0qweYNI0hyenByC0KMCXCk9Vn9Opzpm2lJUi4YblDywApgyt1jN2
4hWSWtrH
=U/f8
-----END PGP SIGNATURE-----

Reply via email to