From 0f898e61eebfb47f3ce394e541e3f6dfbe7e3e16 Mon Sep 17 00:00:00 2001 From: Philip Li Date: Thu, 28 Nov 2024 21:34:03 +0800 Subject: [PATCH] lkp-exec/install: return success for makepkg_install_benchmark() when pkg is not adapted This restores the behavior to continue build_install_benchmarks() when adaptation-pkg doesn't contain pkg. Fixes: 49c30a6cc6d6 ("lkp-exec/install: stop when makepkg_install_benchmark() fails") Signed-off-by: Philip Li --- lkp-exec/install | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lkp-exec/install b/lkp-exec/install index 98680c0cd..88ddc5c54 100755 --- a/lkp-exec/install +++ b/lkp-exec/install @@ -197,14 +197,11 @@ makepkg_install_benchmark() { local pkg=$1 local distro=$2 - if grep -w "^$pkg:" "$LKP_SRC/distro/adaptation-pkg/$distro"; then - makepkg_install "$pkg" && return + grep -w "^$pkg:" "$LKP_SRC/distro/adaptation-pkg/$distro" || return 0 - echo "Install $pkg failed" - else - echo "Cannot find $pkg in $LKP_SRC/distro/adaptation-pkg/$distro" - fi + makepkg_install "$pkg" && return + echo "Install $pkg failed" return 1 }