summaryrefslogtreecommitdiff
path: root/test/upgrade/test-upgrade.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-30 16:41:21 -0400
committerGitHub <noreply@github.com>2022-03-30 16:41:21 -0400
commitc08e8c30a1069acab69bd5704c6362c7c90252d6 (patch)
tree0eab7690a0bb199f9982f33c3858e34aca6ae2cb /test/upgrade/test-upgrade.bats
parent3c75c4a54cba6a1949e53c4386447120b7ddb5a9 (diff)
parent2a882b7703574dc890dd8e3a07be5ca9decd68ac (diff)
downloadpodman-c08e8c30a1069acab69bd5704c6362c7c90252d6.tar.gz
podman-c08e8c30a1069acab69bd5704c6362c7c90252d6.tar.bz2
podman-c08e8c30a1069acab69bd5704c6362c7c90252d6.zip
Merge pull request #13697 from edsantiago/upgrade_test_matrix
Upgrade tests: reexamine cross-testing matrix
Diffstat (limited to 'test/upgrade/test-upgrade.bats')
-rw-r--r--test/upgrade/test-upgrade.bats10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/upgrade/test-upgrade.bats b/test/upgrade/test-upgrade.bats
index 063f4d624..198d8a169 100644
--- a/test/upgrade/test-upgrade.bats
+++ b/test/upgrade/test-upgrade.bats
@@ -75,6 +75,16 @@ setup() {
cat >| $pmscript <<EOF
#!/bin/bash
+#
+# Argh! podman >= 3.4 something something namespace something, fails with
+# Error: invalid config provided: cannot set hostname when running in the host UTS namespace: invalid configuration
+#
+# https://github.com/containers/podman/issues/11969#issuecomment-943386484
+#
+if grep -q utsns /etc/containers/containers.conf; then
+ sed -i -e '/^\utsns=/d' /etc/containers/containers.conf
+fi
+
# events-backend=journald does not work inside a container
opts="--events-backend=file $_PODMAN_TEST_OPTS"