Skip to content

Commit

Permalink
test: HACK: Add fake default route for podman-next scenario
Browse files Browse the repository at this point in the history
The introduction of pasta [1] regressed user containers if there is no
default route [2]. While that is being sorted out, add a fake interface
with a default route for our offline tests, to unbreak upstream podman
PRs testing.

Fixes cockpit-project#1595

[1] containers/podman#21563
[2] containers/podman#21896
  • Loading branch information
martinpitt committed Mar 1, 2024
1 parent 9e3d0c7 commit cecb2cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ VM_CUSTOMIZE_FLAGS = --run-command 'dnf -y update --setopt=install_weak_deps=Fal
endif

ifeq ("$(TEST_SCENARIO)","podman-next")
VM_CUSTOMIZE_FLAGS = --run-command 'dnf -y copr enable rhcontainerbot/podman-next >&2; dnf -y update --repo 'copr*' >&2'
VM_CUSTOMIZE_FLAGS = --run-command 'dnf -y copr enable rhcontainerbot/podman-next >&2; dnf -y update --repo "copr*" >&2'

# HACK: https://github.com/containers/podman/issues/21896
VM_CUSTOMIZE_FLAGS += --run-command 'nmcli con add type dummy con-name fake ifname fake0 ip4 1.2.3.4/24 gw4 1.2.3.1 >&2'
endif

# build a VM with locally built distro pkgs installed
Expand Down

0 comments on commit cecb2cc

Please sign in to comment.