diff options
author | Jim Meyering <meyering@redhat.com> | 2010-11-17 21:35:31 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-11-17 21:45:51 +0100 |
commit | 293c37b9061c1afd0acd143bbded637a8f00b3a0 (patch) | |
tree | a7257594a4a6d18c2011f9ea87a86b0f07376bb6 /tests/chgrp | |
parent | 5c0275e95353742854da6b915fed4fd0434d8159 (diff) | |
download | coreutils-293c37b9061c1afd0acd143bbded637a8f00b3a0.tar.xz |
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/'
Diffstat (limited to 'tests/chgrp')
-rwxr-xr-x | tests/chgrp/basic | 2 | ||||
-rwxr-xr-x | tests/chgrp/default-no-deref | 2 | ||||
-rwxr-xr-x | tests/chgrp/deref | 2 | ||||
-rwxr-xr-x | tests/chgrp/no-x | 2 | ||||
-rwxr-xr-x | tests/chgrp/posix-H | 2 | ||||
-rwxr-xr-x | tests/chgrp/recurse | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/chgrp/basic b/tests/chgrp/basic index 7d6716624..91b111ff9 100755 --- a/tests/chgrp/basic +++ b/tests/chgrp/basic @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ diff --git a/tests/chgrp/default-no-deref b/tests/chgrp/default-no-deref index 77d3bcbcb..0b380acd5 100755 --- a/tests/chgrp/default-no-deref +++ b/tests/chgrp/default-no-deref @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ set _ $groups; shift diff --git a/tests/chgrp/deref b/tests/chgrp/deref index e3cfed229..d470fe12b 100755 --- a/tests/chgrp/deref +++ b/tests/chgrp/deref @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ set _ $groups; shift diff --git a/tests/chgrp/no-x b/tests/chgrp/no-x index e3a4aefd0..d309bd761 100755 --- a/tests/chgrp/no-x +++ b/tests/chgrp/no-x @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ skip_if_root_ diff --git a/tests/chgrp/posix-H b/tests/chgrp/posix-H index 6cf101c8f..c5aeb4bfd 100755 --- a/tests/chgrp/posix-H +++ b/tests/chgrp/posix-H @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ set _ $groups; shift diff --git a/tests/chgrp/recurse b/tests/chgrp/recurse index 0f7f00f22..9f92fdb35 100755 --- a/tests/chgrp/recurse +++ b/tests/chgrp/recurse @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ set _ $groups; shift |