Skip to content

Commit

Permalink
Distro: add a functional test for Debian probes
Browse files Browse the repository at this point in the history
While the standard "debian" container is not so easily suitable for
being used in the existing functional tests for distros that run an
Avocado job, the very standard "python" container is built on Debian
and provides Python (of course).

This should serve to avoid regressions to the distro probes for
Debian.

Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Sep 16, 2024
1 parent 536b6f7 commit ba3bf2f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions selftests/functional/utils/distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,14 @@ def test_rhel_9_1(self):
+ os.uname().machine.encode()
+ b") version 9 release 1\n",
)

def test_debian_12_7(self):
"""
:avocado: dependency={"type": "podman-image", "uri": "docker.io/library/python:3.12"}
"""
self.run_job(
"docker.io/library/python:3.12",
b"Detected distribution: debian ("
+ os.uname().machine.encode()
+ b") version 12 release 7\n",
)

0 comments on commit ba3bf2f

Please sign in to comment.