From: Tobias Brunner Date: Mon, 1 Oct 2018 17:25:52 +0000 (+0200) Subject: testing: Allow enabling only timestamps without verbose command output X-Git-Tag: 5.7.2dr4~18^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7a74fd3e5bf61eaec482e83ee5394ccabddb977;p=thirdparty%2Fstrongswan.git testing: Allow enabling only timestamps without verbose command output -t enables only the timestamps, -v additionally logs command output (includes -t). --- diff --git a/testing/do-tests b/testing/do-tests index 77d5eccdf1..fad3af8cd5 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) ~ " } ##############################################################################