Skip to content

Support numberical prefix in suite names

E.g. '12-bookworm' or '24.04-noble'.

This is a draft as I don't know how to test this. According to HACKING I should be able to run individual tests like this but it does not work:

# pytest tests/22_test_gbp_buildpackage.py:TestGbpBuildpackageDep14.test_get_pbuilder_dist_dep14_debian_12_bookworm
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.12.7+, pytest-8.3.3, pluggy-1.5.0
rootdir: /tmp/build/source
configfile: setup.cfg
plugins: cov-5.0.0, typeguard-4.4.1
collected 0 items                                                                                                                                                                           

===================================================================================== warnings summary ======================================================================================
../../../usr/lib/python3/dist-packages/coverage/inorout.py:456
  /usr/lib/python3/dist-packages/coverage/inorout.py:456: CoverageWarning: --include is ignored because --source is set (include-ignored)
    self.warn("--include is ignored because --source is set", slug="include-ignored")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================================================================== 1 warning in 0.01s =====================================================================================
ERROR: file or directory not found: tests/22_test_gbp_buildpackage.py:TestGbpBuildpackageDep14.test_get_pbuilder_dist_dep14_debian_12_bookworm

I have yet to debug why..

Edited by Otto Kekäläinen

Merge request reports

Loading