1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-22 06:50:52 +03:00

tests: rename shown debug trace

As there could be few invokes of stacktrace, avoid
repeatedly display logs from commands.
So after first display rename  debug.log* -> debug_log
so the file still can remain for reading in test dir.
This commit is contained in:
Zdenek Kabelac 2020-10-02 19:17:36 +02:00
parent 1d7d3db571
commit bd860802d4

View File

@ -171,6 +171,7 @@ STACKTRACE() {
test "$name" = "DEBUG" && { name="$name$idx" ; idx=$(( idx + 1 )) ; }
echo "<======== Debug log $i ========>"
sed -e "s,^,## $name: ," "$i"
mv -f "$i" "debug_${i#debug.}"
done
if test -e strace.log ; then
echo "<======== Strace debug log ========>"