summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-01-26 13:55:32 +0100
committerGitHub <noreply@github.com>2019-01-26 13:55:32 +0100
commitb3f259d0566bdac1af2987dd316e312c0557edf9 (patch)
tree6386fa29b1f2488132ea1bd0d508d558279a07a0
parente4bbc5fb74f02cf1a821e7c40a294c4994ca8ae1 (diff)
parent9a2e265bb00f0f6ab56517627a96b281d6232e3a (diff)
downloadsystemd-b3f259d0566bdac1af2987dd316e312c0557edf9.tar.gz
Merge pull request #11545 from xnox/ppc64el
test-functions: fixup PPC64 testing
-rw-r--r--test/test-functions15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/test-functions b/test/test-functions
index a8c7949668..cb83761a6c 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -99,11 +99,22 @@ run_qemu() {
&& KERNEL_BIN="$EFI_MOUNT/$MACHINE_ID/$KERNEL_VER/linux"
fi
+ CONSOLE=ttyS0
+
if [[ ! "$KERNEL_BIN" ]]; then
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
+ CONSOLE=hvc0
+ ;;
+ *)
+ KERNEL_BIN=/boot/vmlinuz-$KERNEL_VER
+ ;;
+ esac
fi
fi
@@ -150,7 +161,7 @@ root=/dev/sda1 \
raid=noautodetect \
loglevel=2 \
init=$PATH_TO_INIT \
-console=ttyS0 \
+console=$CONSOLE \
selinux=0 \
printk.devkmsg=on \
$_cgroup_args \