Commit 7ae4b60
committed
chore(run-unit-tests): auto-set rootless podman env vars for container tests
When the runner discovers at least one container-based test, it now
defaults `DOCKER_HOST` to the rootless podman socket and
`TESTCONTAINERS_RYUK_DISABLED` to `true` (Ryuk is incompatible with
rootless podman). Already-set values are preserved, so users running
on a real docker host or with a different podman socket override are
not affected.
Both `python tools/run-unit-tests` and the
`python tools/run-container-tests` wrapper benefit; CONTRIBUTING
already documented the env vars as a manual prerequisite, and a
"lightweight wrapper" was flagged as future work.1 parent 5e9569c commit 7ae4b60
1 file changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
82 | 105 | | |
83 | 106 | | |
84 | 107 | | |
| |||
128 | 151 | | |
129 | 152 | | |
130 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
131 | 160 | | |
132 | 161 | | |
133 | 162 | | |
| |||
0 commit comments