summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2018-02-19 20:47:41 +0000
committerDimitri John Ledkov <xnox@ubuntu.com>2019-01-26 00:21:07 +0000
commiteaa602cb14217f2623c9c8c44b6f3012dc4d0b24 (patch)
treec5bda6c6cc9190cad3ec4f130b6bae2d459ef28d /test/test-functions
parent01dab40ba54f76c35b53fbfe78c9d7b340a2367f (diff)
downloadsystemd-eaa602cb14217f2623c9c8c44b6f3012dc4d0b24.tar.gz
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.
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions
index a8c7949668..ac575ade7e 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