Skip to content
GitLab
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
978f775f
Unverified
Commit
978f775f
authored
Mar 04, 2014
by
boklm
Browse files
Add general bundle test status
parent
bb4ea616
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbb-testsuite
View file @
978f775f
...
...
@@ -222,6 +222,17 @@ sub run_tests {
}
}
sub
is_success
{
my
(
$tests
)
=
@_
;
foreach
my
$test
(
keys
%$tests
)
{
if
(
$tests
->
{
$test
}{
type
}
eq
'
mozmill
'
&&
$tests
->
{
$test
}{
results
}{
results
}
->
[
0
]
->
{
failed
})
{
return
0
;
}
}
return
1
;
}
sub
matching_tbbfile
{
my
$o
=
tbb_filename_infos
(
$_
[
0
]);
return
$o
->
{
type
}
eq
'
tbbfile
'
&&
$o
->
{
os
}
eq
$options
->
{
os
}
...
...
@@ -274,6 +285,7 @@ sub test_tbb {
run_tests
(
$options
->
{
tbbinfos
}{
tests
});
chdir
$oldcwd
;
stop_tor
;
$options
->
{
tbbinfos
}{
success
}
=
is_success
(
$options
->
{
tbbinfos
}{
tests
});
$results
{
$options
->
{
tbbinfos
}{
filename
}}
=
$options
->
{
tbbinfos
};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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