diff options
author | Jim Meyering <meyering@redhat.com> | 2010-11-16 08:05:11 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-11-17 21:34:54 +0100 |
commit | 5c0275e95353742854da6b915fed4fd0434d8159 (patch) | |
tree | 238ae25b0197ffa39902e926e6a9051d86c53420 | |
parent | 11d3389f5a11d988c8e384299a79ee2644977f97 (diff) | |
download | coreutils-5c0275e95353742854da6b915fed4fd0434d8159.tar.xz |
tests: factor out VERBOSE-only --version-printing code
* tests/init.cfg (print_ver_): New function.
-rw-r--r-- | tests/init.cfg | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/init.cfg b/tests/init.cfg index 97dad175e..2270c0d18 100644 --- a/tests/init.cfg +++ b/tests/init.cfg @@ -399,4 +399,16 @@ retry_delay_() test "$time_fail" = 0 } +# Call this with a list of programs under test immediately after +# sourcing init.sh. +print_ver_() +{ + if test "$VERBOSE" = yes; then + local i + for i in $*; do + env $i --version + done + fi +} + sanitize_path_ |