Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
tor-browser-bundle-testsuite
Commits
33b2b72a
Unverified
Commit
33b2b72a
authored
Aug 17, 2014
by
boklm
Browse files
Use the known_issues option to check for known issues
parent
e86db639
Changes
1
Hide whitespace changes
Inline
Side-by-side
TBBTestSuite/Tests.pm
View file @
33b2b72a
...
...
@@ -74,6 +74,19 @@ sub is_success {
return
1
;
}
sub
check_known_issues
{
my
(
$tbbinfos
)
=
@_
;
return
unless
$options
->
{
known_issues
};
foreach
my
$test
(
@
{
$tbbinfos
->
{
tests
}})
{
next
unless
$test
->
{
results
};
next
if
$test
->
{
results
}{
success
};
my
$issue
=
$options
->
{
known_issues
}{
$test
->
{
name
}};
next
unless
$issue
;
$issue
=
$issue
->
(
$tbbinfos
,
$test
)
if
ref
$issue
eq
'
CODE
';
@
{
$test
}{
keys
%$issue
}
=
values
%$issue
;
}
}
sub
test_by_name
{
my
(
$tests
,
$name
)
=
@_
;
foreach
my
$test
(
@$tests
)
{
...
...
@@ -147,6 +160,7 @@ sub test_start {
$tbbinfos
->
{
run_time
}
=
$tbbinfos
->
{
finish_time
}
-
$tbbinfos
->
{
start_time
};
$testsuite
->
{
post_tests
}(
$tbbinfos
);
chdir
$oldcwd
;
check_known_issues
(
$tbbinfos
);
$tbbinfos
->
{
success
}
=
is_success
(
$tbbinfos
->
{
tests
});
$report
->
{
tbbfiles
}{
$tbbinfos
->
{
filename
}}
=
$tbbinfos
;
}
...
...
Write
Preview
Supports
Markdown
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