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 9f42224
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion selftests/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"nrunner-requirement": 28,
"unit": 678,
"jobs": 11,
"functional-parallel": 307,
"functional-parallel": 308,
"functional-serial": 7,
"optional-plugins": 0,
"optional-plugins-golang": 2,
Expand Down
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 9f42224

Please sign in to comment.