Skip to content

Commit

Permalink
lkp-exec/install: return success for makepkg_install_benchmark() when…
Browse files Browse the repository at this point in the history
… pkg is not adapted

This restores the behavior to continue build_install_benchmarks() when
adaptation-pkg doesn't contain pkg.

Fixes: 49c30a6 ("lkp-exec/install: stop when makepkg_install_benchmark() fails")
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
rli9 committed Nov 28, 2024
1 parent fb1a868 commit 0f898e6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lkp-exec/install
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0f898e6

Please sign in to comment.