diff options
author | Karel Zak | 2015-10-06 11:06:21 +0200 |
---|---|---|
committer | Karel Zak | 2015-10-06 11:06:21 +0200 |
commit | 64b5e362a98a7620116a83eda69bccda1e46f134 (patch) | |
tree | ac9a01b9c174d1f8f68d14d423a2991f68455adf /tests/ts/logger | |
parent | tests: add missing files (diff) | |
download | kernel-qcow2-util-linux-64b5e362a98a7620116a83eda69bccda1e46f134.tar.gz kernel-qcow2-util-linux-64b5e362a98a7620116a83eda69bccda1e46f134.tar.xz kernel-qcow2-util-linux-64b5e362a98a7620116a83eda69bccda1e46f134.zip |
tests: replace username with tag in logger test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/logger')
-rwxr-xr-x | tests/ts/logger/errors | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ts/logger/errors b/tests/ts/logger/errors index 71b34c8e9..c0fab946f 100755 --- a/tests/ts/logger/errors +++ b/tests/ts/logger/errors @@ -46,8 +46,10 @@ function logger_fun { function logger_printf { # logger without --no-act to write all data to the socket + local fmt="$1" + shift echo "socket data, ${TS_SUBNAME}:" |socat -u - UNIX-CONNECT:$DEVLOG - printf "$1" | $TS_HELPER_LOGGER -u $DEVLOG --stderr >> "$TS_OUTPUT" 2>&1 + printf "$fmt" | $TS_HELPER_LOGGER -u $DEVLOG --stderr "$@" >> "$TS_OUTPUT" 2>&1 echo "ret: $?" >> "$TS_OUTPUT" echo |socat -u - UNIX-CONNECT:$DEVLOG } @@ -85,7 +87,7 @@ logger_fun --tcp -t "tcp" "message" ts_finalize_subtest ts_init_subtest "multi-line" -logger_printf "AAA\nBBB\nCCC\n" +logger_printf "AAA\nBBB\nCCC\n" -t "multi" ts_finalize_subtest ts_init_subtest "rfc5424_msgid_with_space" |