From 808f88eb0cfb8f813fdef301425fe6a4ec83efc8 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sun, 3 Mar 2024 19:33:27 +0000 Subject: [PATCH] Avoid overly long image names --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 9046f7c..68e5dcd 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -113,6 +113,8 @@ def collect(self): extra_args = yaml.safe_load(extra_args_path.read_text()) args += extra_args + # Avoid overly long image names + args.append("--image-name=" + "-".join(self.path.parent.parts[-3:])) args.append(str(self.path.parent)) yield Repo2DockerTest.from_parent(self, name="build", args=args)