mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: still show systems stas when command has not produced debug.log file
When no debug.log* file is present whole stacktracking was skipped. Add extra test the file exists to catch this case.
This commit is contained in:
parent
22a71e1119
commit
545b58542c
@ -147,11 +147,12 @@ STACKTRACE() {
|
||||
local name
|
||||
local idx
|
||||
for i in debug.log* ; do
|
||||
test -f "$i" || break # nothing is found (expands to debug.log*)
|
||||
name=${i##debug.log_}
|
||||
name=${name%%_*}
|
||||
test "$name" = "DEBUG" && { name="$name$idx" ; idx=$(($idx + 1)) ; }
|
||||
echo "<======== Debug log $i ========>"
|
||||
sed -e "s,^,## $name: ," $i
|
||||
sed -e "s,^,## $name: ," "$i"
|
||||
done
|
||||
if test -e strace.log ; then
|
||||
echo "<======== Strace debug log ========>"
|
||||
|
Loading…
Reference in New Issue
Block a user