Gitweb:
https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=cf4b671acd4d7ff87de...
Commit: cf4b671acd4d7ff87dea3ffa88ff99377d093c50
Parent: 4697937af46f2c95b29c627ef60ec37ba1addcf8
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Thu Jun 29 21:22:23 2017 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Thu Jun 29 22:23:17 2017 +0200
tests: utils.sh avoid iterating over ls output
---
test/lib/utils.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/lib/utils.sh b/test/lib/utils.sh
index 6a46649..bfa98de 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")"