Make sure ktest finishes without aborts

This commit is contained in:
Zhang Junyang 2024-09-30 17:47:07 +08:00 committed by Tate, Hongliang Tian
parent 5bdf85b5f0
commit 31aa3058c7

View File

@ -226,6 +226,8 @@ ktest: initramfs $(CARGO_OSDK)
@for dir in $(OSDK_CRATES); do \
[ $$dir = "ostd/libs/linux-bzimage/setup" ] && continue; \
(cd $$dir && cargo osdk test) || exit 1; \
tail --lines 10 qemu.log | grep -q "^\\[ktest runner\\] All crates tested." \
|| (echo "Test failed" && exit 1); \
done
.PHONY: docs