From 458ebe07ffd112508644193eedf3b208847d1664 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Tue, 19 Jul 2022 14:20:53 +0200 Subject: [PATCH] tests - dynamically find deb/rpm name --- tests/LinuxTest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/LinuxTest.py b/tests/LinuxTest.py index 2c765757f..ac87229cd 100644 --- a/tests/LinuxTest.py +++ b/tests/LinuxTest.py @@ -38,11 +38,11 @@ class LinuxTest(Test) : proc = run(cmd, shell=True) if proc.returncode != 0 : raise(Exception("docker run failed (linux stack)")) - cmd = "docker exec linux-" + distro + " " + cmd = "docker exec linux-" + distro + " " if distro in ["ubuntu", "debian"] : - cmd += " apt install -y /opt/*.deb" + cmd += " apt install -y /opt/\\$(ls /opt | grep deb)" elif distro in ["centos", "fedora"] : - cmd += " dnf install -y /opt/*.rpm" + cmd += " dnf install -y /opt/\\$(ls /opt | grep rpm)" proc = run(cmd, shell=True) if proc.returncode != 0 : raise(Exception("docker exec apt install failed (linux stack)"))