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
d3c57be8
Commit
d3c57be8
authored
Jan 06, 2010
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
merge 49672
parents
04a5dcb1
2fc4fbfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+15
-1
No files found.
mysql-test/mysql-test-run.pl
View file @
d3c57be8
...
...
@@ -3502,7 +3502,7 @@ sub run_testcase ($) {
{
# mysqltest failed, probably crashed
$tinfo
->
{
comment
}
=
"
mysqltest failed with unexpected return code
$res
";
"
mysqltest failed with unexpected return code
$res
\n
";
report_failure_and_restart
(
$tinfo
);
}
...
...
@@ -4093,6 +4093,20 @@ sub report_failure_and_restart ($) {
# about what failed has been saved to file. Save the report
# in tinfo
$tinfo
->
{
logfile
}
=
mtr_fromfile
(
$logfile
);
# If no newlines in the test log:
# (it will contain the CURRENT_TEST written by mtr, so is not empty)
if
(
$tinfo
->
{
logfile
}
!~
/\n/
)
{
# Show how far it got before suddenly failing
$tinfo
->
{
comment
}
.=
"
mysqltest failed but provided no output
\n
";
my
$log_file_name
=
$opt_vardir
.
"
/log/
"
.
$tinfo
->
{
shortname
}
.
"
.log
";
if
(
-
e
$log_file_name
)
{
$tinfo
->
{
comment
}
.=
"
The result from queries just before the failure was:
"
.
"
\n
< snip >
\n
"
.
mtr_lastlinesfromfile
(
$log_file_name
,
20
)
.
"
\n
";
}
}
}
else
{
...
...
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