diff options
author | Elena Stepanova <elenst@mariadb.com> | 2021-06-09 15:28:35 +0300 |
---|---|---|
committer | Elena Stepanova <elenst@mariadb.com> | 2021-06-10 00:26:56 +0300 |
commit | 7a1eff0a9d90a45e774ca126ab10f86a78b930f4 (patch) | |
tree | 92f2e45d6f1d455a18c04f1bc8e824e56d46aea0 /mysql-test/suite/plugins | |
parent | c872125a664842ecfb66c60f69b3a87390aec23d (diff) | |
download | mariadb-git-7a1eff0a9d90a45e774ca126ab10f86a78b930f4.tar.gz |
MDEV-25884 Tests use environment $USER variable without quotes
Diffstat (limited to 'mysql-test/suite/plugins')
-rw-r--r-- | mysql-test/suite/plugins/r/unix_socket.result | 4 | ||||
-rw-r--r-- | mysql-test/suite/plugins/t/unix_socket.test | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/mysql-test/suite/plugins/r/unix_socket.result b/mysql-test/suite/plugins/r/unix_socket.result index 0e08794fbe6..096b736cd68 100644 --- a/mysql-test/suite/plugins/r/unix_socket.result +++ b/mysql-test/suite/plugins/r/unix_socket.result @@ -2,7 +2,7 @@ install plugin unix_socket soname 'auth_socket.so'; # # with named user # -create user USER identified via unix_socket; +create user 'USER' identified via unix_socket; # # name match = ok # @@ -12,7 +12,7 @@ USER@localhost USER@% test # # name does not match = failure # -drop user USER; +drop user 'USER'; # # and now with anonymous user # diff --git a/mysql-test/suite/plugins/t/unix_socket.test b/mysql-test/suite/plugins/t/unix_socket.test index bd0323c0274..75409ec70b4 100644 --- a/mysql-test/suite/plugins/t/unix_socket.test +++ b/mysql-test/suite/plugins/t/unix_socket.test @@ -12,9 +12,9 @@ eval install plugin unix_socket soname '$AUTH_SOCKET_SO'; --echo # with named user --echo # ---let $replace=create user $USER ---replace_result $replace "create user USER" -eval create user $USER identified via unix_socket; +--let $replace=create user '$USER' +--replace_result $replace "create user 'USER'" +eval create user '$USER' identified via unix_socket; --write_file $MYSQLTEST_VARDIR/tmp/peercred_test.txt --let $replace1=$USER@localhost @@ -34,9 +34,9 @@ EOF --error 1 --exec $MYSQL_TEST -u foobar --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/peercred_test.txt ---let $replace=drop user $USER ---replace_result $replace "drop user USER" -eval drop user $USER; +--let $replace=drop user '$USER' +--replace_result $replace "drop user 'USER'" +eval drop user '$USER'; --echo # --echo # and now with anonymous user |