Module Name:    src
Committed By:   kre
Date:           Thu May 11 10:08:35 UTC 2023

Modified Files:
        src/tests/bin/sh: t_patterns.sh

Log Message:
Fix building the debugging tarball of the directory tree created for
the pathname matching tests ... this is not used in any way in a normal
test run, but if there are problems, one needs a mechanism to discover
whether the issue is with the code that creates the directory tree in the
test, or with the matching (either what the test expects to happen, or
what the shell actually does).   The couple of lines being fixed here make
that mechanism work --- I have had this in my private sources for years
now, but never got around to committing it.   It is time.  NFC for any
normal test run.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/bin/sh/t_patterns.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/bin/sh/t_patterns.sh
diff -u src/tests/bin/sh/t_patterns.sh:1.6 src/tests/bin/sh/t_patterns.sh:1.7
--- src/tests/bin/sh/t_patterns.sh:1.6	Thu May 11 01:50:40 2023
+++ src/tests/bin/sh/t_patterns.sh	Thu May 11 10:08:34 2023
@@ -1,4 +1,4 @@
-# $NetBSD: t_patterns.sh,v 1.6 2023/05/11 01:50:40 gutteridge Exp $
+# $NetBSD: t_patterns.sh,v 1.7 2023/05/11 10:08:34 kre Exp $
 #
 # Copyright (c) 2018 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -301,8 +301,8 @@ filename_expansion_body() {
 	esac
 	case "${ATF_TEST_SAVE_FILES}" in
 	'')	;;
-	/*)	(cd ../..; tar cf "${ATF_TEST_SAVE_FILES}" D) ;;
-	*)	(cd ../..; tar cf "${TMPDIR:-/tmp}/${ATF_TEST_SAVE_FILES}" D) ;;
+	/*)	(cd ..; tar cf "${ATF_TEST_SAVE_FILES}" .D) ;;
+	*)	(cd ..; tar cf "${TMPDIR:-/tmp}/${ATF_TEST_SAVE_FILES}" .D) ;;
 	esac
 
 	# Now we have lots of files, try some matching

Reply via email to