In suite.test.mk, test if ${DESTDIR} exists before attempting to run

chflags -R on it, otherwise the command will error out.  (Note that
adding -f to the chflags invocation does not help, unlike with rm.)

MFC after:	3 days
This commit is contained in:
Dimitry Andric 2019-09-25 17:52:59 +00:00
parent 8df0d09bdb
commit e11365676b

View File

@ -120,7 +120,7 @@ beforecheck:
# etc.
aftercheck:
@cd ${.CURDIR} && ${MAKE} clean
@chflags -R 0 "${DESTDIR}"
@test ! -e ${DESTDIR} || chflags -R 0 "${DESTDIR}"
@rm -Rf "${DESTDIR}"
.endif