From 9310a15cbdbd1dad9abadc4d61e3c57de1368e03 Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Thu, 16 Aug 2012 16:58:14 +0930 Subject: [PATCH] Improve test framework: better output from tfw_cat --- testframework.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/testframework.sh b/testframework.sh index 51a4c211..cb3cfe33 100644 --- a/testframework.sh +++ b/testframework.sh @@ -563,26 +563,26 @@ tfw_cat() { local show_nonprinting= for file; do case $file in - --stdout) - tfw_log "#--- ${header:-stdout of ($executed)} ---" + --stdout) + tfw_log "#----- ${header:-stdout of ($executed)} -----" cat $show_nonprinting $_tfw_tmp/stdout - tfw_log "#---" + tfw_log "#-----" header= show_nonprinting= ;; - --stderr) - tfw_log "#--- ${header:-stderr of ($executed)} ---" + --stderr) + tfw_log "#----- ${header:-stderr of ($executed)} -----" cat $show_nonprinting $_tfw_tmp/stderr - tfw_log "#---" + tfw_log "#-----" header= show_nonprinting= ;; --header=*) header="${1#*=}";; -v|--show-nonprinting) show_nonprinting=-v;; *) - tfw_log "#--- ${header:-$file} ---" + tfw_log "#----- ${header:-${file#$_tfw_tmp/}} -----" cat $show_nonprinting "$file" - tfw_log "#---" + tfw_log "#-----" header= show_nonprinting= ;; @@ -594,9 +594,9 @@ tfw_core_backtrace() { local executable="$1" local corefile="$2" echo backtrace >"$_tfw_tmpdir/backtrace.gdb" - tfw_log "#--- gdb backtrace from $executable $corefile ---" + tfw_log "#----- gdb backtrace from $executable $corefile -----" gdb -n -batch -x "$_tfw_tmpdir/backtrace.gdb" "$executable" "$corefile"