diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 21:22:23 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 22:23:17 +0200 |
commit | cf4b671acd4d7ff87dea3ffa88ff99377d093c50 (patch) | |
tree | c7b39c7a95d800eda813d3456f0022c26ea6b58f /test | |
parent | 4697937af46f2c95b29c627ef60ec37ba1addcf8 (diff) | |
download | lvm2-cf4b671acd4d7ff87dea3ffa88ff99377d093c50.tar.gz |
tests: utils.sh avoid iterating over ls output
Diffstat (limited to 'test')
-rw-r--r-- | 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 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")" |