Skip to content

Commit 49c30a6

Browse files
committed
lkp-exec/install: stop when makepkg_install_benchmark() fails
Signed-off-by: Philip Li <[email protected]>
1 parent 8bca22f commit 49c30a6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lkp-exec/install

+10-2
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,17 @@ makepkg_install_packages() {
190190

191191
makepkg_install_benchmark() {
192192
local pkg=$1
193+
local distro=$2
194+
193195
if grep -w "^$pkg:" "$LKP_SRC/distro/adaptation-pkg/$distro"; then
194-
makepkg_install "$pkg" || echo "Install $pkg failed"
196+
makepkg_install "$pkg" && return
197+
198+
echo "Install $pkg failed"
199+
else
200+
echo "Cannot find $pkg in $LKP_SRC/distro/adaptation-pkg/$distro"
195201
fi
202+
203+
return 1
196204
}
197205

198206
install_packages() {
@@ -416,7 +424,7 @@ do
416424

417425
benchmark_package=$(get_adaptation_pkg $distro "$script")
418426
if [ -n "$FORCE_MODE" ] || ! verify_install "$benchmark_package"; then
419-
makepkg_install_benchmark "$script"
427+
makepkg_install_benchmark "$script" $distro || exit 1
420428
fi
421429

422430
[ -n "$FORCE_MODE" ] && install_opt="-f"

0 commit comments

Comments
 (0)