Skip to content

Commit f431fe8

Browse files
committed
Fix: '--secure-file-priv' should not be required
1 parent 63ef15d commit f431fe8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

unittests.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,11 +652,17 @@ def init_mysql_server(port, options):
652652
"options": {"mysqlx_bind_address": "mysqlx_bind_address={0}".format("::"
653653
if tests.IPV6_AVAILABLE else "0.0.0.0")}
654654
}]
655-
if not options.secure_file_priv is None:
655+
656+
if options.secure_file_priv is not None:
656657
extra_args += [{
657658
"version": (5, 5, 53),
658659
"options": {"secure_file_priv": "secure_file_priv = %s" % options.secure_file_priv}
659660
}]
661+
else:
662+
extra_args += [{
663+
"version": (5, 5, 53),
664+
"options": {"secure_file_priv": ""}
665+
}]
660666

661667
try:
662668
mysql_server = mysqld.MySQLServer(

0 commit comments

Comments
 (0)