summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-06-29 21:22:23 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-06-29 22:23:17 +0200
commitcf4b671acd4d7ff87dea3ffa88ff99377d093c50 (patch)
treec7b39c7a95d800eda813d3456f0022c26ea6b58f /test
parent4697937af46f2c95b29c627ef60ec37ba1addcf8 (diff)
downloadlvm2-cf4b671acd4d7ff87dea3ffa88ff99377d093c50.tar.gz
tests: utils.sh avoid iterating over ls output
Diffstat (limited to 'test')
-rw-r--r--test/lib/utils.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/utils.sh b/test/lib/utils.sh
index 6a4664933..bfa98dea1 100644
--- a/test/lib/utils.sh
+++ b/test/lib/utils.sh
@@ -134,7 +134,7 @@ STACKTRACE() {
echo bt full > gdb_commands.txt
echo l >> gdb_commands.txt
echo quit >> gdb_commands.txt
- for core in $(ls core* 2>/dev/null); do
+ for core in $(echo core* 2>/dev/null); do
bin=$(gdb -batch -c "$core" 2>&1 | grep "generated by" | \
sed -e "s,.*generated by \`\([^ ']*\).*,\1,")
gdb -batch -c "$core" -x gdb_commands.txt "$(which "$bin")"