From 355e500e4deeda3902a396878b9f3d8a560f123e Mon Sep 17 00:00:00 2001 From: Faustin Lammler Date: Tue, 30 Apr 2024 09:37:50 +0200 Subject: [PATCH] Fix save var --- utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils.py b/utils.py index 1d4e498d..2ca778a5 100644 --- a/utils.py +++ b/utils.py @@ -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"""