Skip to content

Commit

Permalink
Fix save var
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Apr 30, 2024
1 parent 311cbd9 commit 355e500
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,16 +365,16 @@ def createVar(base_path="./buildbot", output_dir=""):
# save binaries (if not already saved by another mtr failing test)
if [[ -f sql/mysqld ]] && [[ ! -L sql/mysqld ]]; then
[[ -f "./$MTR_LOG_DIR/logs/mysqld.gz" ]] ||
gzip -c sql/mysqld >"./$MTR_LOG_DIR/logs/mysqld.gz"
[[ -f "./{base_path}/logs/mysqld.gz" ]] ||
gzip -c sql/mysqld >"./{base_path}/logs/mysqld.gz"
fi
if [[ -f sql/mariadbd ]]; then
[[ -f "./$MTR_LOG_DIR/logs/mariadbd.gz" ]] ||
gzip -c sql/mariadbd >"./$MTR_LOG_DIR/logs/mariadbd.gz"
[[ -f "./{base_path}/logs/mariadbd.gz" ]] ||
gzip -c sql/mariadbd >"./{base_path}/logs/mariadbd.gz"
fi
tar czvf var.tar.gz -T ./$var_tarball_list
mv var.tar.gz "./$MTR_LOG_DIR/logs/$test_name"
mv var.tar.gz "./{base_path}/logs/$test_name"
fi"""


Expand Down

0 comments on commit 355e500

Please sign in to comment.