From 7dc45877f7e2acc2290d0dea7d9256fbd608415b Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Thu, 9 Jun 2022 16:31:28 +0200 Subject: [PATCH] fix test test_build_basic_image_with_build_volumes Had to add :Z, SELinux Signed-off-by: Tomas Tomecek --- tests/functional/test_buildah.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/test_buildah.py b/tests/functional/test_buildah.py index d5df9e6..e419680 100644 --- a/tests/functional/test_buildah.py +++ b/tests/functional/test_buildah.py @@ -87,7 +87,7 @@ def test_build_basic_image_with_build_volumes(tmpdir, target_image): with open(os.path.join(real_tmp, "file.txt"), "w") as fd: fd.write("Hello, hello!") container_mount = "/asdqwe" - vol_spec = "%s:%s" % (real_tmp, container_mount) + vol_spec = "%s:%s:Z" % (real_tmp, container_mount) cmd = ["build", "--build-volumes", vol_spec, "--", basic_playbook_path_w_bv, base_image, target_image] ab(cmd, str(tmpdir))