Attention is currently required from: pespin.
osmith has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37887?usp=email )
Change subject: testenv: add TESTENV_REBUILD_OUTDATED_IMAGE ......................................................................
Patch Set 2:
(1 comment)
File _testenv/testenv/podman.py:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37887/comment/23769c65_bd518... : PS1, Line 60: logging.debug("Building anyway since --force was used")
oh, so there's already a cmdline param for that? then this commit is just adding yet another way to […]
The `--force` parameter does something different, it allows force-rebuilding the image with `./testenv.py init podman` even if we detected that the image should be up-to-date.
The environment variable will automatically rebuild the image if we detect it is outdated during `./testenv.py run ...`.
``` ./testenv.py init podman [testenv] + ['podman', 'image', 'exists', 'debian-bookworm-osmo-ttcn3-testenv'] [testenv] + ['podman', 'history', 'debian-bookworm-osmo-ttcn3-testenv', '--format', 'json'] [testenv] Image creation date: 2024-08-21 14:02:19 [testenv] Dockerfile last modified: 2024-08-21 14:01:23 [testenv] Podman image is up-to-date: debian-bookworm-osmo-ttcn3-testenv ```
``` ./testenv.py init podman --force [testenv] + ['podman', 'image', 'exists', 'debian-bookworm-osmo-ttcn3-testenv'] [testenv] + ['podman', 'history', 'debian-bookworm-osmo-ttcn3-testenv', '--format', 'json'] [testenv] Image creation date: 2024-08-21 14:02:19 [testenv] Dockerfile last modified: 2024-08-21 14:01:23 [testenv] Podman image is up-to-date: debian-bookworm-osmo-ttcn3-testenv [testenv] Building anyway since --force was used [testenv] Building podman image: debian-bookworm-osmo-ttcn3-testenv [testenv] + ['buildah', 'build', '--build-arg', 'DISTRO=debian:bookworm', '-t', 'debian-bookworm-osmo-ttcn3-testenv', '/home/user/code/osmo-dev/src/osmo-ttcn3-hacks/_testenv/data/podman'] ```