cheribsd icon indicating copy to clipboard operation
cheribsd copied to clipboard

Race when installing tests

Open arichardson opened this issue 2 years ago • 1 comments

I just got the following build failure with -j128:

install: /home/alexrichardson/cheri/output/rootfs-morello-purecap/usr/tests/sys/ses/destructive: No such file or directory
--- _proginstall ---
*** [_proginstall] Error code 71

My only explanation for this is that there is a missing depdency between creating TESTSDIR and installing the tests?

PACKAGE=	tests

TESTSDIR=	${TESTSBASE}/sys/ses

ATF_TESTS_C+=	destructive
ATF_TESTS_C+=	nondestructive

# Some tests cases alter enclosure state, so they can't run concurrently.
TEST_METADATA.destructive+= is_exclusive=true

.include <bsd.test.mk>

Maybe bsd.test.mk needs something like .ORDER: installdirs _proginstall?

arichardson avatar Apr 16 '22 17:04 arichardson

Upstream review at https://reviews.freebsd.org/D34971

arichardson avatar Apr 20 '22 09:04 arichardson