]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
Add use of logger so that syslog files show when each test starts
authorTheodore Ts'o <tytso@mit.edu>
Mon, 29 Oct 2018 16:15:57 +0000 (12:15 -0400)
committerOmar Sandoval <osandov@fb.com>
Mon, 26 Nov 2018 19:35:33 +0000 (11:35 -0800)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
check

diff --git a/check b/check
index f6c3537b15575bfe0d9c1ea567197607e7240067..ebd87c097e2567e74612b858215f1d0feef4d4fa 100755 (executable)
--- a/check
+++ b/check
@@ -319,6 +319,7 @@ _call_test() {
                local dmesg_marker=""
                CHECK_DMESG=0
        fi
+       $LOGGER_PROG "run blktests $TEST_NAME"
 
        trap _cleanup EXIT
        if ! TMPDIR="$(mktemp --tmpdir -p "$OUTPUT" -d "tmpdir.${TEST_NAME//\//.}.XXX")"; then
@@ -578,6 +579,8 @@ fi
 eval set -- "$TEMP"
 unset TEMP
 
+LOGGER_PROG="$(type -P logger)" || LOGGER_PROG=true
+
 if [[ -r config ]]; then
        # shellcheck disable=SC1091
        . config