]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/test-functions: on PP64 use vmlinux
authorDimitri John Ledkov <xnox@ubuntu.com>
Mon, 19 Feb 2018 20:47:41 +0000 (20:47 +0000)
committerDimitri John Ledkov <xnox@ubuntu.com>
Sat, 26 Jan 2019 00:21:07 +0000 (00:21 +0000)
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.

test/test-functions

index a8c79496682457ecc09d5ff49496839156c9f4d9..ac575ade7eedbca4d46d2fb58cc260ec0f9e6421 100644 (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