Skip to content

Commit

Permalink
revert removal of workaround
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Aug 6, 2024
1 parent 4bd9bae commit 6d16a32
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/package-tests/package-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ trap 'podman rm -fv $container_name >/dev/null 2>&1 || true' EXIT
podman build -t "$image_name" -f "$SCRIPT_DIR/Dockerfile.test.$pkg_type" "$SCRIPT_DIR"
podman rm -fv "$container_name" >/dev/null 2>&1 || true

# test install
CRUN_VER='1.14.4'
mkdir -p "${HOME}/.local/bin"
curl -L "https://github.com/containers/crun/releases/download/${CRUN_VER}/crun-${CRUN_VER}-linux-amd64" -o "${HOME}/.local/bin/crun"
chmod +x "${HOME}/.local/bin/crun"
mkdir -p "${HOME}/.config/containers"
cat << EOF > "${HOME}/.config/containers/containers.conf"
[engine.runtimes]
crun = [
"${HOME}/.local/bin/crun",
"/usr/bin/crun"
]
EOF

podman run --name "$container_name" -d "$image_name"
podman exec -t "$container_name" systemctl is-system-running --quiet --wait
install_pkg "$container_name" "$PKG_PATH"
Expand Down

0 comments on commit 6d16a32

Please sign in to comment.