diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-28 20:14:05 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-28 20:14:05 -0400 |
commit | 6f6e4d8ed5dac90cc53a24d8e27d904cba5085cc (patch) | |
tree | f3525777eef20e5ff72c3f1416687fb258f86780 /lib/util.sh | |
parent | 1abd88caf592f48559e3eba5c9697aa80566e0ba (diff) |
Better startup logging
Add log_verbose, for logging messages in verbose mode, and a new startup
message to help with figuring out what's taking so long for tests to
start.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'lib/util.sh')
-rw-r--r-- | lib/util.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/util.sh b/lib/util.sh index 7fc1073..c894304 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -171,6 +171,13 @@ join_by() echo "$*" } +log_verbose() +{ + if [[ $ktest_verbose != 0 ]]; then + echo "$@" + fi +} + run_quiet() { local msg=$1 |