diff options
author | Will Andrews <[email protected]> | 2020-10-11 15:08:56 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-01-25 14:33:57 -0800 |
commit | de1a6cc38743b5542252a1179cf519dfc3485508 (patch) | |
tree | 2496f521dee44340e50c5f0532a19a24bb23d0a9 /tests | |
parent | a4134da2b2b2917fe516a5fd396b6330656c181a (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #11515
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-runner/include/logapi.shlib | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-runner/include/logapi.shlib b/tests/test-runner/include/logapi.shlib index aa6e7c0f6..5a7e76c0d 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 |