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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b73f090a
Commit
b73f090a
authored
Nov 28, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/work/my41-work
into neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint
parents
ed4b672f
e5ff9ebc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+14
-5
No files found.
mysql-test/mysql-test-run.pl
View file @
b73f090a
...
...
@@ -1943,20 +1943,25 @@ sub remove_stale_vardir () {
if
(
-
l
$opt_vardir
)
{
# var is a symlink
if
(
readlink
(
$opt_vardir
)
eq
$opt_mem
)
if
(
$opt_mem
and
readlink
(
$opt_vardir
)
eq
$opt_mem
)
{
# Remove the directory which the link points at
mtr_verbose
("
Removing
"
.
readlink
(
$opt_vardir
));
rmtree
(
readlink
(
$opt_vardir
));
# Remove the entire "var" dir
mtr_verbose
("
Removing
$opt_vardir
/
");
rmtree
("
$opt_vardir
/
");
# Remove the "var" symlink
mtr_verbose
("
unlink(
$opt_vardir
)
");
unlink
(
$opt_vardir
);
}
elsif
(
$opt_mem
)
{
# Just remove the "var" symlink
mtr_report
("
WARNING: Removing '
$opt_vardir
' symlink it's wrong
");
mtr_verbose
("
unlink(
$opt_vardir
)
");
unlink
(
$opt_vardir
);
}
else
{
# Some users creates a soft link in mysql-test/var to another area
...
...
@@ -1964,6 +1969,10 @@ sub remove_stale_vardir () {
mtr_report
("
WARNING: Using the 'mysql-test/var' 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
);
my
$dir
=
shift
;
foreach
my
$bin
(
glob
("
$opt_vardir
/*
")
)
{
...
...
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