Skip to content

Commit 7a1eff0

Browse files
committed
MDEV-25884 Tests use environment $USER variable without quotes
1 parent c872125 commit 7a1eff0

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
INSTALL SONAME 'auth_named_pipe';
22
CREATE USER 'USERNAME' IDENTIFIED WITH named_pipe;
3-
GRANT ALL PRIVILEGES ON *.* to USERNAME;
3+
GRANT ALL PRIVILEGES ON *.* to 'USERNAME';
44
DROP USER 'USERNAME';
55
UNINSTALL SONAME 'auth_named_pipe';

mysql-test/suite/mariabackup/auth_plugin_win.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ INSTALL SONAME 'auth_named_pipe';
1818
--replace_result $USERNAME USERNAME
1919
eval CREATE USER '$USERNAME' IDENTIFIED WITH named_pipe;
2020
--replace_result $USERNAME USERNAME
21-
eval GRANT ALL PRIVILEGES ON *.* to $USERNAME;
21+
eval GRANT ALL PRIVILEGES ON *.* to '$USERNAME';
2222

2323
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
2424
--disable_result_log

mysql-test/suite/plugins/r/unix_socket.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ install plugin unix_socket soname 'auth_socket.so';
22
#
33
# with named user
44
#
5-
create user USER identified via unix_socket;
5+
create user 'USER' identified via unix_socket;
66
#
77
# name match = ok
88
#
@@ -12,7 +12,7 @@ USER@localhost USER@% test
1212
#
1313
# name does not match = failure
1414
#
15-
drop user USER;
15+
drop user 'USER';
1616
#
1717
# and now with anonymous user
1818
#

mysql-test/suite/plugins/t/unix_socket.test

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ eval install plugin unix_socket soname '$AUTH_SOCKET_SO';
1212
--echo # with named user
1313
--echo #
1414

15-
--let $replace=create user $USER
16-
--replace_result $replace "create user USER"
17-
eval create user $USER identified via unix_socket;
15+
--let $replace=create user '$USER'
16+
--replace_result $replace "create user 'USER'"
17+
eval create user '$USER' identified via unix_socket;
1818

1919
--write_file $MYSQLTEST_VARDIR/tmp/peercred_test.txt
2020
--let $replace1=$USER@localhost
@@ -34,9 +34,9 @@ EOF
3434
--error 1
3535
--exec $MYSQL_TEST -u foobar --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/peercred_test.txt
3636

37-
--let $replace=drop user $USER
38-
--replace_result $replace "drop user USER"
39-
eval drop user $USER;
37+
--let $replace=drop user '$USER'
38+
--replace_result $replace "drop user 'USER'"
39+
eval drop user '$USER';
4040

4141
--echo #
4242
--echo # and now with anonymous user

0 commit comments

Comments
 (0)