Skip to content

Commit

Permalink
make copy test reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
ostinru committed Mar 1, 2024
1 parent 33cf8cc commit 812cfc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker/mysql/export_common.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

# common wal-g settings
# export MYSQLDATA=/var/lib/mysql
export WALG_MYSQL_DATASOURCE_NAME=sbtest:@/sbtest
export WALG_STREAM_CREATE_COMMAND="xtrabackup --backup \
--stream=xbstream \
Expand Down
7 changes: 4 additions & 3 deletions docker/mysql_tests/scripts/base_tests/conf-only-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e -x

# https://github.com/wal-g/wal-g/issues/790
## ensure correct conf option will overwrite this trash
#export AWS_ENDPOINT=we23i902309239
export AWS_ENDPOINT=we23i902309239

cat > /root/conf.yaml <<EOH
WALE_S3_PREFIX: s3://mysqlconfonly
Expand All @@ -31,8 +31,9 @@ mysqld --initialize --init-file=/etc/mysql/init.sql
service mysql start
mysql mysql -e 'create table testt1(i int)'

export NAME
NAME=$(wal-g backup-push --config=/root/conf.yaml 2>&1 | grep -oe 'stream_[0-9]*T[0-9]*Z' | sort -u)
wal-g backup-push --config=/root/conf.yaml

NAME=$(wal-g backup-list --config=/root/conf.yaml | grep -oe 'stream_[0-9]*T[0-9]*Z' | sort -u)

mysql_kill_and_clean_data

Expand Down

0 comments on commit 812cfc2

Please sign in to comment.