Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/bin/sh Fix building the debugging tarball of the direc...
details: https://anonhg.NetBSD.org/src/rev/56d18d052d5f
branches: trunk
changeset: 374753:56d18d052d5f
user: kre <kre%NetBSD.org@localhost>
date: Thu May 11 10:08:34 2023 +0000
description:
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.
diffstat:
tests/bin/sh/t_patterns.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r f7a9d56aaa72 -r 56d18d052d5f tests/bin/sh/t_patterns.sh
--- a/tests/bin/sh/t_patterns.sh Thu May 11 09:35:57 2023 +0000
+++ b/tests/bin/sh/t_patterns.sh Thu May 11 10:08:34 2023 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index