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
b9a810dd
Commit
b9a810dd
authored
May 04, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly calculate failed tests
parent
86ac70f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
mysql-test/lib/mtr_report.pm
mysql-test/lib/mtr_report.pm
+13
-8
No files found.
mysql-test/lib/mtr_report.pm
View file @
b9a810dd
...
...
@@ -222,22 +222,27 @@ sub mtr_report_stats ($) {
foreach
my
$tinfo
(
@$tests
)
{
if
(
$tinfo
->
{
'
result
'}
eq
'
MTR_RES_SKIPPED
'
)
if
(
$tinfo
->
{
failures
}
)
{
# Test has failed at least one time
$tot_tests
++
;
$tot_failed
++
;
}
elsif
(
$tinfo
->
{'
result
'}
eq
'
MTR_RES_SKIPPED
'
)
{
# Test was skipped
$tot_skiped
++
;
}
elsif
(
$tinfo
->
{'
result
'}
eq
'
MTR_RES_PASSED
'
)
{
# Test passed
$tot_tests
++
;
$tot_passed
++
;
}
elsif
(
$tinfo
->
{
failures
}
)
{
$tot_tests
++
;
$tot_failed
++
;
}
if
(
$tinfo
->
{'
restarted
'}
)
{
# Servers was restarted
$tot_restarts
++
;
}
...
...
@@ -302,7 +307,7 @@ sub mtr_report_stats ($) {
# Print each failed test, again
#foreach my $test ( @$tests ){
# if ( $test->{
result} eq 'MTR_RES_FAILED'
) {
# if ( $test->{
failures}
) {
# mtr_report_test($test);
# }
#}
...
...
@@ -320,7 +325,7 @@ sub mtr_report_stats ($) {
foreach
my
$tinfo
(
@$tests
)
{
my
$tname
=
$tinfo
->
{'
name
'};
if
(
$tinfo
->
{
'
result
'}
eq
'
MTR_RES_FAILED
'
and
!
$seen
{
$tname
})
if
(
$tinfo
->
{
failures
}
and
!
$seen
{
$tname
})
{
print
"
$tname
";
$seen
{
$tname
}
=
1
;
...
...
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