Fix LinuxTest package installation commands

This commit is contained in:
Théophile Diot 2023-08-22 09:48:29 +02:00
parent 6d1d464e16
commit 82fb7b277d
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -31,9 +31,9 @@ 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 = "apt install -y /opt/\\$(ls /opt | grep deb)"
elif distro in ("centos", "fedora", "rhel"):
cmd = "dnf install -y /opt/\$(ls /opt | grep rpm)"
cmd = "dnf install -y /opt/\\$(ls /opt | grep rpm)"
proc = LinuxTest.docker_exec(distro, cmd)
if proc.returncode != 0:
raise Exception("docker exec apt install failed (linux stack)")