Skip to content

Commit

Permalink
Merge pull request #13960 from cevich/fix_upgrade
Browse files Browse the repository at this point in the history
Fix upgrade tests assuming storage.conf exists
  • Loading branch information
openshift-merge-robot authored Apr 21, 2022
2 parents bdbd477 + d24507c commit 077e7c5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/upgrade/test-upgrade.bats
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ EOF
# cause connectivity issues since cni and netavark should never be mixed.
mkdir -p /run/netns /run/cni /run/containers /var/lib/cni /etc/cni/net.d

# Containers-common around release 1-55 no-longer supplies this file
sconf=/etc/containers/storage.conf
v_sconf=
if [[ -e "$sconf" ]]; then
v_sconf="-v $sconf:$sconf"
fi

#
# Use new-podman to run the above script under old-podman.
Expand All @@ -165,7 +171,7 @@ EOF
--net=host \
--cgroupns=host \
--pid=host \
-v /etc/containers/storage.conf:/etc/containers/storage.conf \
$v_sconf \
-v /dev/fuse:/dev/fuse \
-v /run/crun:/run/crun \
-v /run/netns:/run/netns:rshared \
Expand Down

0 comments on commit 077e7c5

Please sign in to comment.