Make functional gate job work on Xenial

With the functional gate job now being run on Xenial instead of Trusty,
the mysql version being used is much newer. Here we enable the variable
show_compatibility_56 that allows mysql system variables to be available
through SHOW statements. This should fix the gate currently failing
due to 'SHOW VARIABLES' statements erroring out.

Change-Id: Ica368351a669458d3dd4085403f086335a4470c7
This commit is contained in:
Paul Van Eck 2016-09-06 16:49:47 -07:00
parent 1ad26cbd71
commit 264b0a0beb

View File

@ -25,6 +25,7 @@ mysqld --no-defaults --datadir=${MYSQL_DATA} --pid-file=${MYSQL_DATA}/mysql.pid
# Wait for MySQL to start listening to connections # Wait for MySQL to start listening to connections
wait_for_line "mysqld: ready for connections." ${MYSQL_DATA}/out wait_for_line "mysqld: ready for connections." ${MYSQL_DATA}/out
export REFSTACK_TEST_MYSQL_URL="mysql+pymysql://root@localhost/test?unix_socket=${MYSQL_DATA}/mysql.socket&charset=utf8" export REFSTACK_TEST_MYSQL_URL="mysql+pymysql://root@localhost/test?unix_socket=${MYSQL_DATA}/mysql.socket&charset=utf8"
mysql --no-defaults -S ${MYSQL_DATA}/mysql.socket -e 'set @@global.show_compatibility_56=ON;' > /dev/null 2>&1
mysql --no-defaults -S ${MYSQL_DATA}/mysql.socket -e 'CREATE DATABASE test;' mysql --no-defaults -S ${MYSQL_DATA}/mysql.socket -e 'CREATE DATABASE test;'
# Yield execution to venv command # Yield execution to venv command