From: Dimitri John Ledkov Date: Mon, 19 Feb 2018 20:47:41 +0000 (+0000) Subject: test/test-functions: on PP64 use vmlinux X-Git-Tag: v241-rc1~4^2~1 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=commitdiff_plain;h=eaa602cb14217f2623c9c8c44b6f3012dc4d0b24 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. --- diff --git a/test/test-functions b/test/test-functions index a8c79496682..ac575ade7ee 100644 --- a/test/test-functions +++ b/test/test-functions @@ -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