Files
percona-toolkit/run-tests.sh
Viktor Szépe 2bd40d8c39 Remove trailing spaces (#665)
* Remove trailing spaces

* PR-665 -  Remove trailing spaces

- Updated not stable test t/pt-online-schema-change/preserve_triggers.t
- Updated utilities in bin directory

* PR-665 -  Remove trailing spaces

- Fixed typos

* PR-665 -  Remove trailing spaces

- Fixed typos

---------

Co-authored-by: Sveta Smirnova <sveta.smirnova@percona.com>
2023-09-06 01:15:12 +03:00

16 lines
353 B
Bash
Executable File

#!/bin/bash
BRANCH=$(git rev-parse --abbrev-ref HEAD)
MYSQL_VERSION=$(mysql -ss -e "SHOW VARIABLES LIKE 'version'" | cut -f2)
LOG_FILE=~/${BRANCH}-${MYSQL_VERSION}.log
truncate --size=0 ${LOG_FILE}
echo "Logging to $LOG_FILE"
for dir in t/*
do
echo "$dir"
sandbox/test-env restart
prove -vw --trap --timer "$dir" | tee -a $LOG_FILE
done