diff options
Diffstat (limited to 'test/test-functions')
-rw-r--r-- | test/test-functions | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/test-functions b/test/test-functions index 1ad6220efc..abe421c505 100644 --- a/test/test-functions +++ b/test/test-functions @@ -347,12 +347,14 @@ run_qemu() { [ "$ARCH" ] || ARCH=$(uname -m) case $ARCH in ppc64*) - KERNEL_BIN="/boot/vmlinux-$KERNEL_VER" - CONSOLE=hvc0 - ;; + # Ubuntu ppc64* calls the kernel binary as vmlinux-*, RHEL/CentOS + # uses the "standard" vmlinuz- prefix + [[ -e "/boot/vmlinux-$KERNEL_VER" ]] && KERNEL_BIN="/boot/vmlinux-$KERNEL_VER" || KERNEL_BIN="/boot/vmlinuz-$KERNEL_VER" + CONSOLE=hvc0 + ;; *) - KERNEL_BIN="/boot/vmlinuz-$KERNEL_VER" - ;; + KERNEL_BIN="/boot/vmlinuz-$KERNEL_VER" + ;; esac fi fi |