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
0456e239
Commit
0456e239
authored
Sep 11, 2008
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#4350 Fix --record and no .result file
parent
77ca89c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+6
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+9
-6
No files found.
mysql-test/lib/mtr_cases.pm
View file @
0456e239
...
...
@@ -699,6 +699,12 @@ sub collect_one_test_case {
# should fail by default
$tinfo
->
{
result_file
}
=
$result_file
;
}
else
{
# No .result file exist
# Remember the path where it should be
# saved in case of --record
$tinfo
->
{
record_file
}
=
$result_file
;
}
# ----------------------------------------------------------------------
# Skip some tests but include in list, just mark them as skipped
...
...
mysql-test/mysql-test-run.pl
View file @
0456e239
...
...
@@ -2638,12 +2638,14 @@ sub do_before_run_mysqltest($)
my
$tinfo
=
shift
;
# Remove old files produced by mysqltest
my
$base_file
=
mtr_match_extension
(
$tinfo
->
{'
result_file
'},
"
result
");
# Trim extension
unlink
("
$base_file
.reject
");
unlink
("
$base_file
.progress
");
unlink
("
$base_file
.log
");
unlink
("
$base_file
.warnings
");
my
$base_file
=
mtr_match_extension
(
$tinfo
->
{
result_file
},
"
result
");
# Trim extension
if
(
defined
$base_file
){
unlink
("
$base_file
.reject
");
unlink
("
$base_file
.progress
");
unlink
("
$base_file
.log
");
unlink
("
$base_file
.warnings
");
}
if
(
$mysql_version_id
<
50000
)
{
# Set environment variable NDB_STATUS_OK to 1
...
...
@@ -4332,6 +4334,7 @@ sub start_mysqltest ($) {
if
(
$opt_record
)
{
mtr_add_arg
(
$args
,
"
--record
");
mtr_add_arg
(
$args
,
"
--result-file=%s
",
$tinfo
->
{
record_file
});
}
if
(
$opt_client_gdb
)
...
...
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