Skip to content

Commit

Permalink
Merge pull request #1048
Browse files Browse the repository at this point in the history
systemtests: wait for mariadb shutdown
  • Loading branch information
pstorz committed Jan 27, 2022
2 parents 4b792f2 + cc0ffbf commit a098fca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and since Bareos version 20 this project adheres to [Semantic Versioning](https:
- tests: simplify test coverage analysis [PR #1010]
- docs: Add chapter for mariabackup db plugin [PR #1016]
- dird: extend the list command to be able to query volumes and pools by ID [PR #1041]
- systemtests: wait for mariadb shutdown [PR #1048]

### Changed

Expand Down
8 changes: 6 additions & 2 deletions systemtests/tests/py2plug-fd-mariabackup/testrunner
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ JobName=backup-bareos-fd
"${rscripts}"/setup

shutdown_mysql_server(){
[ -f "mysql/mysqld.pid" ] && kill "$(cat mysql/mysqld.pid)" || :
[ -f "mysql/data/${HOSTNAME}.pid" ] && kill "$(cat mysql/data/${HOSTNAME}.pid)" || :
for f in mysql/mysqld.pid "mysql/data/${HOSTNAME}.pid"; do
[ ! -r "$f" ] && continue
pid="$(cat "$f")"
kill "$pid"
wait "$pid"
done
}

startup_mysql_server(){
Expand Down

0 comments on commit a098fca

Please sign in to comment.