Skip to content

Commit

Permalink
don't do schema upgrade test during release
Browse files Browse the repository at this point in the history
  • Loading branch information
julsemaan committed Nov 7, 2018
1 parent 2534994 commit 02cbdf1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/test_apply_schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ else
RESET_COLOR=
fi


PF_DIR=/usr/local/pf

DB_PREFIX=pf_smoke_test_
Expand All @@ -21,6 +22,11 @@ MYSQL="mysql -upf_smoke_tester -ppacket -h127.0.0.1"

MYSQLDUMP="mysqldump -upf_smoke_tester -h127.0.0.1 --no-data -a --skip-comments --routines -ppacket"

if ! [ -f "$PF_DIR/db/upgrade-X.X.X-X.Y.Z.sql" ]; then
echo "X.X.X to X.Y.Z upgrade script doesn't exist. Not testing schema upgrade"
exit 0
fi

for db in $UPGRADED_DB $PRISTINE_DB;do
echo "Created test db $db"
$MYSQL -e"DROP DATABASE IF EXISTS $db;"
Expand Down

0 comments on commit 02cbdf1

Please sign in to comment.