Skip to content

Commit 02cbdf1

Browse files
committed
don't do schema upgrade test during release
1 parent 2534994 commit 02cbdf1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/test_apply_schema.sh

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ else
99
RESET_COLOR=
1010
fi
1111

12+
1213
PF_DIR=/usr/local/pf
1314

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

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

25+
if ! [ -f "$PF_DIR/db/upgrade-X.X.X-X.Y.Z.sql" ]; then
26+
echo "X.X.X to X.Y.Z upgrade script doesn't exist. Not testing schema upgrade"
27+
exit 0
28+
fi
29+
2430
for db in $UPGRADED_DB $PRISTINE_DB;do
2531
echo "Created test db $db"
2632
$MYSQL -e"DROP DATABASE IF EXISTS $db;"

0 commit comments

Comments
 (0)