You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running composer prepare-tests and there is an errro, no usefull information is shown.
Now It diesplays all the variables it uses.
And when giving an error, display where to find the documentation.
# Prepare the database for running the tests with a MySQL version 8.0 or higher.
76
106
install_mysql_db_8_0_plus() {
77
-
set -ex
107
+
set -ex# print all the commands.
78
108
mysql -e "CREATE DATABASE IF NOT EXISTS \`${TEST_DB}\`;"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
79
109
mysql -e "CREATE USER IF NOT EXISTS \`${TEST_USER}\`@'%' IDENTIFIED WITH mysql_native_password BY '${TEST_PASSWORD}'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
80
110
mysql -e "GRANT ALL PRIVILEGES ON \`${TEST_DB}\`.* TO '${TEST_USER}'@'%'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
81
111
mysql -e "GRANT ALL PRIVILEGES ON \`${TEST_DB}_scaffold\`.* TO '${TEST_USER}'@'%'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
112
+
{ set +ex; } 2> /dev/null # stop printing the commands
82
113
}
83
114
84
115
# Prepare the database for running the tests with a MySQL version lower than 8.0.
85
116
install_mysql_db_lower_than_8_0() {
86
-
set -ex
117
+
set -ex# print all the commands.
87
118
mysql -e "CREATE DATABASE IF NOT EXISTS \`${TEST_DB}\`;"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
88
119
mysql -e "GRANT ALL ON \`${TEST_DB}\`.* TO '${TEST_USER}'@'%' IDENTIFIED BY '${TEST_PASSWORD}'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
89
120
mysql -e "GRANT ALL ON \`${TEST_DB}_scaffold\`.* TO '${TEST_USER}'@'%' IDENTIFIED BY '${TEST_PASSWORD}'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
121
+
{ set +ex; } 2> /dev/null # stop printing the commands
0 commit comments