test/test-functions: on PP64 use vmlinux

At least on Ubuntu, ppc64el uses vmlinux-, not vmlinuz. With this, it should be
possible to run qemu tests on ppc64el as part of Ubuntu autopkgtests.
This commit is contained in:
Dimitri John Ledkov 2018-02-19 20:47:41 +00:00
parent 01dab40ba5
commit eaa602cb14
No known key found for this signature in database
GPG Key ID: CAC2D8B9CD2CA5F9
1 changed files with 9 additions and 1 deletions

View File

@ -103,7 +103,15 @@ run_qemu() {
if [[ "$LOOKS_LIKE_ARCH" ]]; then
KERNEL_BIN=/boot/vmlinuz-linux
else
KERNEL_BIN=/boot/vmlinuz-$KERNEL_VER
[ "$ARCH" ] || ARCH=$(uname -m)
case $ARCH in
ppc64*)
KERNEL_BIN=/boot/vmlinux-$KERNEL_VER
;;
*)
KERNEL_BIN=/boot/vmlinuz-$KERNEL_VER
;;
esac
fi
fi