Author: dim
Date: Wed Sep 25 17:52:59 2019
New Revision: 352699
URL: https://svnweb.freebsd.org/changeset/base/352699

Log:
  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

Modified:
  head/share/mk/suite.test.mk

Modified: head/share/mk/suite.test.mk
==============================================================================
--- head/share/mk/suite.test.mk Wed Sep 25 17:35:34 2019        (r352698)
+++ head/share/mk/suite.test.mk Wed Sep 25 17:52:59 2019        (r352699)
@@ -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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to