1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-24 17:57:48 +03:00

tests: aux.sh use subshell for simple redirection

This commit is contained in:
Zdenek Kabelac 2017-06-30 14:35:42 +02:00
parent 57779e39ec
commit c31614eccc

View File

@ -131,9 +131,11 @@ STACKTRACE() {
# Get backtraces from coredumps
if which gdb &>/dev/null; then
echo bt full > gdb_commands.txt
echo l >> gdb_commands.txt
echo quit >> gdb_commands.txt
{
echo bt full
echo l
echo quit
} > gdb_commands.txt
# TODO: use sysctl to get 'core' position in system
for i in core*; do
test -f "$i" || break # empty globbing