NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/51876: [PATCH] tests/usr.sbin/mtree: kyua 0.11 $TMPDIR fixes



The following reply was made to PR bin/51876; it has been noted by GNATS.

From: "Ngie Cooper (yaneurabeya)" <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51876: [PATCH] tests/usr.sbin/mtree: kyua 0.11 $TMPDIR fixes
Date: Sat, 14 Jan 2017 05:38:16 -0800

 --Apple-Mail=_E40624A1-516E-4D97-ABED-A3E7D673EBA6
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Patch attached.
 -Ngie
 
 --Apple-Mail=_E40624A1-516E-4D97-ABED-A3E7D673EBA6
 Content-Disposition: attachment;
 	filename=t_mtree-kyua-0_11-TMPDIR-fix.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="t_mtree-kyua-0_11-TMPDIR-fix.patch"
 Content-Transfer-Encoding: 7bit
 
 Index: usr.sbin/mtree/t_mtree.sh
 ===================================================================
 RCS file: /cvsroot/src/tests/usr.sbin/mtree/t_mtree.sh,v
 retrieving revision 1.6
 diff -u -r1.6 t_mtree.sh
 --- usr.sbin/mtree/t_mtree.sh	5 Feb 2013 16:49:42 -0000	1.6
 +++ usr.sbin/mtree/t_mtree.sh	14 Jan 2017 13:34:29 -0000
 @@ -284,6 +284,13 @@
  
  ignore_body()
  {
 +	# Kyua 0.11 and above point TMPDIR to our work directory and atf-check
 +	# generates a temporary file, which confuses mtree.  Put the mtree files
 +	# into a subdirectory.
 +	#
 +	# See https://github.com/jmmv/kyua/issues/133 for details.
 +	mkdir root && cd root
 +
  	mkdir newdir
  	mtree -F ${FLAVOR} -c | mtree -F ${FLAVOR} -Ck uid,gid,mode > mtree.spec
  	ln -s newdir otherdir
 @@ -313,6 +320,13 @@
  }
  netbsd6_ignore_body() 
  {
 +	# Kyua 0.11 and above point TMPDIR to our work directory and atf-check
 +	# generates a temporary file, which confuses mtree.  Put the mtree files
 +	# into a subdirectory.
 +	#
 +	# See https://github.com/jmmv/kyua/issues/133 for details.
 +	mkdir root && cd root
 +
  	FLAVOR=netbsd6 ignore_body
  }
  
 
 --Apple-Mail=_E40624A1-516E-4D97-ABED-A3E7D673EBA6--
 


Home | Main Index | Thread Index | Old Index