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:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user