Revert "Fix LinuxTest package installation commands"

This reverts commit 82fb7b277d.
This commit is contained in:
Théophile Diot 2023-08-22 10:27:21 +02:00
parent 82fb7b277d
commit 69e944d56a
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)")