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
acf75687
Commit
acf75687
authored
Nov 28, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more checks to avoid removing unwanted directories.
parent
bccf1442
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+20
-6
No files found.
mysql-test/mysql-test-run.pl
View file @
acf75687
...
...
@@ -1974,15 +1974,29 @@ sub remove_stale_vardir () {
sub
setup_vardir
()
{
mtr_report
("
Creating Directories
");
if
(
$opt_mem
)
if
(
$opt_vardir
eq
$default_vardir
)
{
#
# Running with "var" in mysql-test dir
#
if
(
-
l
$opt_vardir
)
{
# Runinng with var as a link to some "memory" location, normally tmpfs
# it's a symlink
# Make sure the directory where it points exist
mtr_error
("
The destination for symlink
$opt_vardir
does not exist
")
if
!
-
d
readlink
(
$opt_vardir
);
}
elsif
(
$opt_mem
)
{
# Runinng with "var" as a link to some "memory" location, normally tmpfs
mtr_verbose
("
Creating
$opt_mem
");
mkpath
(
$opt_mem
);
mtr_report
("
Symlinking 'var' to '
$opt_mem
'
");
symlink
(
$opt_mem
,
$opt_vardir
);
}
}
mkpath
("
$opt_vardir
/log
");
mkpath
("
$opt_vardir
/run
");
...
...
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