[PATCH v3 09/12] selftests/nolibc: customize QEMU_TIMEOUT for ppc64/ppc64le

From: Zhangjin Wu
Date: Thu Jul 27 2023 - 16:32:13 EST


Both ppc64 and ppc64le use slow bios in some qemu versions, let's
increase the timeout to make sure the running qemu would not be killed
before the test finish.

Signed-off-by: Zhangjin Wu <falcon@xxxxxxxxxxx>
---
tools/testing/selftests/nolibc/Makefile | 2 ++
1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile
index 9a57de3b283c..ad2538ec5eb0 100644
--- a/tools/testing/selftests/nolibc/Makefile
+++ b/tools/testing/selftests/nolibc/Makefile
@@ -106,6 +106,8 @@ QEMU_ARGS_loongarch = -M virt -append "console=ttyS0,115200 panic=-1 $(TEST:%=N
QEMU_ARGS = $(QEMU_ARGS_$(XARCH)) $(QEMU_ARGS_EXTRA)

# QEMU_TIMEOUT: some architectures can not poweroff normally, especially for tinyconfig
+QEMU_TIMEOUT_ppc64 = 15
+QEMU_TIMEOUT_ppc64le = 25
QEMU_TIMEOUT = $(or $(QEMU_TIMEOUT_$(XARCH)),10)

# OUTPUT is only set when run from the main makefile, otherwise
--
2.25.1