From de1a6cc38743b5542252a1179cf519dfc3485508 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Sun, 11 Oct 2020 15:08:56 -0500 Subject: [PATCH] logapi: cat output file instead of printing This avoids globbing together multiple lines in the log, if you happen to specify LOGAPI_DEBUG because you want to see it. Signed-off-by: Will Andrews Signed-off-by: Brian Behlendorf Closes #11515 --- tests/test-runner/include/logapi.shlib | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-runner/include/logapi.shlib b/tests/test-runner/include/logapi.shlib index aa6e7c0f65fa..5a7e76c0ddbf 100644 --- a/tests/test-runner/include/logapi.shlib +++ b/tests/test-runner/include/logapi.shlib @@ -105,7 +105,7 @@ function log_must_retry " assertion failure exited $status" status=1 else - [[ -n $LOGAPI_DEBUG ]] && print $($out) + [[ -n $LOGAPI_DEBUG ]] && cat $logfile _printsuccess "$@" fi break @@ -244,7 +244,7 @@ function log_neg_expect fi if (( $ret == 0 )); then - [[ -n $LOGAPI_DEBUG ]] && print $($out) + [[ -n $LOGAPI_DEBUG ]] && cat $logfile _printsuccess "$@" "exited $status" fi fi @@ -284,7 +284,7 @@ function log_pos " exited $status" status=1 else - [[ -n $LOGAPI_DEBUG ]] && print $($out) + [[ -n $LOGAPI_DEBUG ]] && cat $logfile _printsuccess "$@" fi fi