Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 2019 17:52:59 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352699 - head/share/mk
Message-ID:  <201909251752.x8PHqxD9076583@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909251752.x8PHqxD9076583>