mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 05:16:47 +00:00
Make sure ktest finishes without aborts
This commit is contained in:
parent
5bdf85b5f0
commit
31aa3058c7
2
Makefile
2
Makefile
@ -226,6 +226,8 @@ ktest: initramfs $(CARGO_OSDK)
|
|||||||
@for dir in $(OSDK_CRATES); do \
|
@for dir in $(OSDK_CRATES); do \
|
||||||
[ $$dir = "ostd/libs/linux-bzimage/setup" ] && continue; \
|
[ $$dir = "ostd/libs/linux-bzimage/setup" ] && continue; \
|
||||||
(cd $$dir && cargo osdk test) || exit 1; \
|
(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
|
done
|
||||||
|
|
||||||
.PHONY: docs
|
.PHONY: docs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user