From c7a74fd3e5bf61eaec482e83ee5394ccabddb977 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 1 Oct 2018 19:25:52 +0200 Subject: [PATCH] testing: Allow enabling only timestamps without verbose command output -t enables only the timestamps, -v additionally logs command output (includes -t). --- testing/do-tests | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/testing/do-tests b/testing/do-tests index 77d5eccdf..fad3af8cd 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -51,11 +51,15 @@ subdir_cnt="0" ############################################################################## # parse optional arguments # -while getopts "v" opt +while getopts "vt" opt do case "$opt" in v) verbose=YES + timestamps=YES + ;; + t) + timestamps=YES ;; esac done @@ -64,7 +68,7 @@ shift $((OPTIND-1)) function print_time() { - [ "$verbose" == "YES" ] && echo "$(date +%T.%N) ~ " + [ "$timestamps" == "YES" ] && echo "$(date +%T.%N) ~ " } ##############################################################################