Source-Changes-HG archive

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

[src/trunk]: src/tests/usr.sbin/mtree PR/51876: Ngie Cooper: kyua 0.11 $TMPDI...



details:   https://anonhg.NetBSD.org/src/rev/9c897a392148
branches:  trunk
changeset: 820762:9c897a392148
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 14 20:45:16 2017 +0000

description:
PR/51876: Ngie Cooper: kyua 0.11 $TMPDIR fixes

diffstat:

 tests/usr.sbin/mtree/t_mtree.sh |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 834737af2b4a -r 9c897a392148 tests/usr.sbin/mtree/t_mtree.sh
--- a/tests/usr.sbin/mtree/t_mtree.sh   Sat Jan 14 20:43:52 2017 +0000
+++ b/tests/usr.sbin/mtree/t_mtree.sh   Sat Jan 14 20:45:16 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_mtree.sh,v 1.6 2013/02/05 16:49:42 christos Exp $
+# $NetBSD: t_mtree.sh,v 1.7 2017/01/14 20:45:16 christos Exp $
 #
 # Copyright (c) 2009, 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -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
 }
 



Home | Main Index | Thread Index | Old Index