mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
tests - dynamically find deb/rpm name
This commit is contained in:
parent
2205043e75
commit
458ebe07ff
1 changed files with 3 additions and 3 deletions
|
@ -40,9 +40,9 @@ class LinuxTest(Test) :
|
|||
raise(Exception("docker run failed (linux stack)"))
|
||||
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)"))
|
||||
|
|
Loading…
Reference in a new issue