tests - tweak dpkg before installing BW

This commit is contained in:
florian 2023-08-22 14:12:38 +02:00
parent 643b30f993
commit 898ee7ec87
No known key found for this signature in database
GPG key ID: 3D80806F12602A7C

View file

@ -31,7 +31,7 @@ class LinuxTest(Test):
if proc.returncode != 0:
raise Exception("docker run failed (linux stack)")
if distro in ("ubuntu", "debian"):
cmd = "apt install -y /opt/\\$(ls /opt | grep deb)"
cmd = "echo force-bad-version >> /etc/dpkg/dpkg.cfg ; apt install -y /opt/\\$(ls /opt | grep deb)"
elif distro in ("centos", "fedora", "rhel"):
cmd = "dnf install -y /opt/\\$(ls /opt | grep rpm)"
proc = LinuxTest.docker_exec(distro, cmd)
@ -43,7 +43,7 @@ class LinuxTest(Test):
if distro in ("ubuntu", "debian"):
LinuxTest.docker_exec(
distro,
"DEBIAN_FRONTEND=noninteractive apt-get install -y php-fpm unzip ; echo force-bad-version >> /etc/dpkg/dpkg.cfg",
"DEBIAN_FRONTEND=noninteractive apt-get install -y php-fpm unzip",
)
if distro == "ubuntu":
LinuxTest.docker_cp(