Skip to contentSkip to conversation

master - tests: utils.sh avoid iterating over ls output

PATCH Zdenek Kabelac 1 participant 1 message Jun 29, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=cf4b671acd4d7ff87dea3ffa88ff99377d093c50
Commit:        cf4b671acd4d7ff87dea3ffa88ff99377d093c50
Parent:        4697937af46f2c95b29c627ef60ec37ba1addcf8
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Jun 29 21:22:23 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
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(-)
test/lib/utils.sh +1 -1
index 6a46649..bfa98de 100644
@@ -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")"