Skip to content

Commit

Permalink
Remove -q from grep command. We want to see an output
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Sep 19, 2024
1 parent cde768b commit 9ba70c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/run
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ ssl-cert=\${APP_DATA}/mysql-certs/server-cert-selfsigned.pem
5*) ssl_mode_opt='--ssl-mode=REQUIRED'
esac

if mysql_cmd "$ip" "ssl_test_user" "ssl_test" ${ssl_mode_opt:-} --ssl-ca=${ca_cert_path} -e 'show status like "Ssl_cipher" \G' | grep -q 'Value: [A-Z][A-Z0-9-]*' ; then
if mysql_cmd "$ip" "ssl_test_user" "ssl_test" ${ssl_mode_opt:-} --ssl-ca=${ca_cert_path} -e 'show status like "Ssl_cipher" \G' | grep 'Value: [A-Z][A-Z0-9-]*' ; then
echo " Success!"
rm -rf ${test_app_dir}
else
Expand Down Expand Up @@ -583,7 +583,7 @@ function run_datadir_actions_test() {
test_connection testupg5 user foo
docker stop $(ct_get_cid testupg5) >/dev/null
# Check whether analyze happened
if ! docker logs $(ct_get_cid testupg5) 2>&1 | grep -qe '--analyze --all-databases' &>/dev/null ; then
if ! docker logs $(ct_get_cid testupg5) 2>&1 | grep -e '--analyze --all-databases' &>/dev/null ; then
echo "Analyze did not happen but it should"
ct_check_testcase_result 1
return 1
Expand All @@ -596,7 +596,7 @@ function run_datadir_actions_test() {
test_connection testupg6 user foo
docker stop $(ct_get_cid testupg6) >/dev/null
# Check whether optimize happened
if ! docker logs $(ct_get_cid testupg6) 2>&1 | grep -qe '--optimize --all-databases' &>/dev/null ; then
if ! docker logs $(ct_get_cid testupg6) 2>&1 | grep -e '--optimize --all-databases' &>/dev/null ; then
echo "Optimize did not happen but it should"
ct_check_testcase_result 1
return 1
Expand Down

0 comments on commit 9ba70c1

Please sign in to comment.