Commit f8b62b8
committed
fix(test): tighten container-test detection in run-unit-tests
The container-vs-fast heuristic used plain `'podman' in content` and
`'testcontainers' in content` substring matches, which also fired on
comments, docstrings, and on plugin names that happen to contain the
word `podman`. As a result, `apache-httpd-status`, `deb-updates`,
`needs-restarting`, `rpm-updates`, `podman-info`, and `podman-stats`
were silently skipped by `tools/run-unit-tests --no-container` and
therefore by the full `tox` matrix.
Match on precise signatures instead: `import testcontainers`,
`from testcontainers`, `lib.lftest.run_container(`, `DockerImage(`,
and `DockerContainer(`. Those strings only appear in real container
drivers, not in incidental mentions of the word.1 parent e055a53 commit f8b62b8
1 file changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
50 | 65 | | |
51 | 66 | | |
52 | 67 | | |
53 | 68 | | |
54 | 69 | | |
55 | 70 | | |
56 | | - | |
57 | | - | |
| 71 | + | |
58 | 72 | | |
59 | 73 | | |
60 | 74 | | |
61 | 75 | | |
62 | 76 | | |
63 | 77 | | |
64 | 78 | | |
65 | | - | |
| 79 | + | |
66 | 80 | | |
67 | 81 | | |
68 | 82 | | |
| |||
0 commit comments