Skip to content

Commit

Permalink
fixup! Make sure core dumps are saved
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust authored and vladbogo committed Apr 18, 2024
1 parent 4b1f310 commit b8f9fe7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,12 @@ def createVar(base_path="./buildbot", output_dir=""):
return f"""
if [[ -d ./mysql-test/var ]]; then
typeset extra=""
for dir in \
./mysql-test/var/log/*/core* \
./mysql-test/var/*/log/*/mysqld.*/data/core* \
./mysql-test/var/*/log/*/core*; do
if compgen -G "$dir" >/dev/null; then
extra="$extra $dir"
fi
done
compgen -G ./mysql-test/var/log/*/core* >/dev/null &&
extra="$extra ./mysql-test/var/log/*/core*"
compgen -G ./mysql-test/var/*/log/*/mysqld.*/data/core* >/dev/null &&
extra="$extra ./mysql-test/var/*/log/*/mysqld.*/data/core*"
compgen -G ./mysql-test/var/*/log/*/core* >/dev/null &&
extra="$extra ./mysql-test/var/*/log/*/core*"
if [[ -f sql/mysqld ]] && [[ ! -L sql/mysqld ]]; then
extra="$extra sql/mysqld"
fi
Expand Down

0 comments on commit b8f9fe7

Please sign in to comment.