[PATCH v2 lkp-tests] tests/cci-makepkg: centos7 update gcc in container

Signed-off-by: Lin Jiaxin <ljx.joe@qq.com> --- tests/cci-makepkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cci-makepkg b/tests/cci-makepkg index a7a990a5..0354af89 100755 --- a/tests/cci-makepkg +++ b/tests/cci-makepkg @@ -98,7 +98,7 @@ centos_update_gcc() { grep -sqF "CentOS Linux release 7" /etc/centos-release || return - [ "$os_mount" = "initramfs" ] && { + [ -f /.dockerenv -o "$os_mount" = "initramfs" ] && { yum install -y centos-release-scl-rh yum install -y "devtoolset-8-gcc*" } -- 2.23.0

- [ "$os_mount" = "initramfs" ] && { + [ -f /.dockerenv -o "$os_mount" = "initramfs" ] && {
^ -o or -a? maybe add changelog update gcc in container, why add -f /.dockerenv? Thanks, Zhangyu
yum install -y centos-release-scl-rh yum install -y "devtoolset-8-gcc*" } -- 2.23.0
participants (2)
-
Lin Jiaxin
-
Zhang Yu