Skip to content

Commit ef2474c

Browse files
committed
Distro: add a functional test for Debian probes
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]>
1 parent a24c5ff commit ef2474c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

selftests/check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"nrunner-requirement": 28,
3030
"unit": 678,
3131
"jobs": 11,
32-
"functional-parallel": 312,
32+
"functional-parallel": 313,
3333
"functional-serial": 7,
3434
"optional-plugins": 0,
3535
"optional-plugins-golang": 2,

selftests/functional/utils/distro.py

+11
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,14 @@ def test_rhel_9_1(self):
5353
+ os.uname().machine.encode()
5454
+ b") version 9 release 1\n",
5555
)
56+
57+
def test_debian_12_7(self):
58+
"""
59+
:avocado: dependency={"type": "podman-image", "uri": "docker.io/library/python@sha256:785fef11f44b7393c03d77032fd72e56af8b05442b051a151229145e5fbbcb29"}
60+
"""
61+
self.run_job(
62+
"docker.io/library/python@sha256:785fef11f44b7393c03d77032fd72e56af8b05442b051a151229145e5fbbcb29",
63+
b"Detected distribution: debian ("
64+
+ os.uname().machine.encode()
65+
+ b") version 12 release 7\n",
66+
)

0 commit comments

Comments
 (0)