Skip to content

Commit 6b606d2

Browse files
mvo5achilleas-k
authored andcommitted
test: set the cache-ttl to 1h in our tests
The current caching of the test containers can lead to unexpected results when e.g. the upstream osbuild repo gets updated but podman caches the relevant line in the Containerfile because the install of osbuild has not changed. To counter this the container building sets an agressive TTL of 1h for the cache. This fixes the issues locally.
1 parent 9fb07fe commit 6b606d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/containerbuild.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def make_container(container_path, arch=None):
2525

2626
subprocess.check_call([
2727
"podman", "build",
28+
"--cache-ttl=1h",
2829
"-t", container_tag,
2930
"--arch", arch,
3031
container_path], encoding="utf8")
@@ -41,6 +42,7 @@ def build_container_fixture():
4142
container_tag = "bootc-image-builder-test"
4243
subprocess.check_call([
4344
"podman", "build",
45+
"--cache-ttl=1h",
4446
"-f", "Containerfile",
4547
"-t", container_tag,
4648
])

0 commit comments

Comments
 (0)