Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fdd66544
Commit
fdd66544
authored
Dec 18, 2008
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#41480 Tests that do LOAD DATA INFILE fail when run locally
parent
1fe215a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
mysql-test/lib/My/File/Path.pm
mysql-test/lib/My/File/Path.pm
+14
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+2
-2
No files found.
mysql-test/lib/My/File/Path.pm
View file @
fdd66544
...
...
@@ -92,9 +92,16 @@ sub mkpath {
sub
copytree
{
my
(
$from_dir
,
$to_dir
)
=
@_
;
my
(
$from_dir
,
$to_dir
,
$use_umask
)
=
@_
;
die
"
Usage: copytree(<fromdir>, <todir>
"
unless
@_
==
2
;
die
"
Usage: copytree(<fromdir>, <todir>, [<umask>])
"
unless
@_
==
2
or
@_
==
3
;
my
$orig_umask
;
if
(
$use_umask
){
# Set new umask and remember the original
$orig_umask
=
umask
(
oct
(
$use_umask
));
}
mkpath
("
$to_dir
");
opendir
(
DIR
,
"
$from_dir
")
...
...
@@ -114,6 +121,11 @@ sub copytree {
copy
("
$from_dir
/
$_
",
"
$to_dir
/
$_
");
}
closedir
(
DIR
);
if
(
$orig_umask
){
# Set the original umask
umask
(
$orig_umask
);
}
}
1
;
mysql-test/mysql-test-run.pl
View file @
fdd66544
...
...
@@ -1981,8 +1981,8 @@ sub setup_vardir() {
}
# copy all files from std_data into var/std_data
# and make them w
rit
able
copytree
("
$glob_mysql_test_dir
/std_data
",
"
$opt_vardir
/std_data
");
# and make them w
orld read
able
copytree
("
$glob_mysql_test_dir
/std_data
",
"
$opt_vardir
/std_data
"
,
"
0022
"
);
# Remove old log files
foreach
my
$name
(
glob
("
r/*.progress r/*.log r/*.warnings
"))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment