tests - add unzip package to linux container

This commit is contained in:
florian 2022-08-22 15:47:09 +02:00
parent 7915da6dfb
commit 29933fdebb
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class LinuxTest(Test) :
if proc.returncode != 0 :
raise(Exception("docker exec failed for directory " + src + " (linux stack)"))
if distro in ["ubuntu", "debian"] :
LinuxTest.docker_exec(distro, "DEBIAN_FRONTEND=noninteractive apt-get install -y php-fpm")
LinuxTest.docker_exec(distro, "DEBIAN_FRONTEND=noninteractive apt-get install -y php-fpm unzip")
if distro == "ubuntu" :
LinuxTest.docker_cp(distro, "./tests/www-deb.conf", "/etc/php/8.1/fpm/pool.d/www.conf")
LinuxTest.docker_exec(distro, "systemctl stop php8.1-fpm ; systemctl start php8.1-fpm")
@ -68,7 +68,7 @@ class LinuxTest(Test) :
LinuxTest.docker_cp(distro, "./tests/www-deb.conf", "/etc/php/7.4/fpm/pool.d/www.conf")
LinuxTest.docker_exec(distro, "systemctl stop php7.4-fpm ; systemctl start php7.4-fpm")
elif distro in ["centos", "fedora"] :
LinuxTest.docker_exec(distro, "dnf install -y php-fpm")
LinuxTest.docker_exec(distro, "dnf install -y php-fpm unzip")
LinuxTest.docker_cp(distro, "./tests/www-rpm.conf", "/etc/php-fpm.d/www.conf")
LinuxTest.docker_exec(distro, "mkdir /run/php ; chmod 777 /run/php ; systemctl stop php-fpm ; systemctl start php-fpm")
sleep(60)