1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-14 03:12:10 +02:00

tests: factor out VERBOSE-only --version-printing code

* tests/init.cfg (print_ver_): New function.
This commit is contained in:
Jim Meyering
2010-11-16 08:05:11 +01:00
parent 11d3389f5a
commit 5c0275e953

View File

@@ -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_