From 293c37b9061c1afd0acd143bbded637a8f00b3a0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 17 Nov 2010 21:35:31 +0100 Subject: tests: substitute the single-program $VERBOSE/--version uses Automatically make all of the changes like this: -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp git grep -l 'VERBOSE.*--version'|xargs perl -pi -e \ 's/test "\$VERBOSE" = yes && (\w+) --version/print_ver_ $1/' --- tests/chown/basic | 2 +- tests/chown/deref | 2 +- tests/chown/preserve-root | 2 +- tests/chown/separator | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/chown') diff --git a/tests/chown/basic b/tests/chown/basic index 3ad43b403..59f3cb7b4 100755 --- a/tests/chown/basic +++ b/tests/chown/basic @@ -17,7 +17,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_root_ touch f || framework_failure diff --git a/tests/chown/deref b/tests/chown/deref index 85603b429..7ea8a0951 100755 --- a/tests/chown/deref +++ b/tests/chown/deref @@ -18,7 +18,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chown --version +print_ver_ chown ln -s no-such dangle || framework_failure diff --git a/tests/chown/preserve-root b/tests/chown/preserve-root index c01149629..f3cd26741 100755 --- a/tests/chown/preserve-root +++ b/tests/chown/preserve-root @@ -17,7 +17,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chown --version +print_ver_ chown skip_if_root_ mkdir d && ln -s / d/slink-to-root diff --git a/tests/chown/separator b/tests/chown/separator index 914d9cca4..859ae9ae1 100755 --- a/tests/chown/separator +++ b/tests/chown/separator @@ -17,7 +17,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chown --version +print_ver_ chown id_u=`id -u` || framework_failure test -n "$id_u" || framework_failure -- cgit v1.2.3-54-g00ecf