Try shorter runroot directory
@@ -51,8 +51,12 @@ test:
# run it as root and/or in a build container with more capabilities.
# Instead, let's see if it's a least able to find and download an image.
- |
+ # We use mktemp instead of a path in the test work directory to avoid
+ # "Error: the specified runroot is longer than 50 characters".
+ tmp="$( mktemp -d )"
+ trap 'rm -r "${tmp}" ; trap - EXIT ; exit' EXIT INT HUP
buildah --storage-driver=vfs \
- --root="$(pwd)/containers-root" --runroot="$(pwd)/containers-runroot" \
+ --root="${tmp}/root" --runroot="${tmp}/runroot" \
pull busybox 2>&1 \
| grep -qF 'Writing manifest to image destination'
