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
6bd7dc46
Unverified
Commit
6bd7dc46
authored
Sep 06, 2014
by
boklm
Browse files
mochitests: handle case where failures file is not created
parent
c94b2c61
Changes
1
Hide whitespace changes
Inline
Side-by-side
TBBTestSuite/BrowserUnitTests.pm
View file @
6bd7dc46
...
@@ -248,9 +248,10 @@ sub mochitest_test {
...
@@ -248,9 +248,10 @@ sub mochitest_test {
capture_exec
('
xvfb-run
',
'
--server-args=-screen 0 1024x768x24
',
capture_exec
('
xvfb-run
',
'
--server-args=-screen 0 1024x768x24
',
'
./mach
',
$mach_command
,
$test
->
{
dir
});
'
./mach
',
$mach_command
,
$test
->
{
dir
});
$test
->
{
results
}{
out
}
=
$out
;
$test
->
{
results
}{
out
}
=
$out
;
my
$failed
=
decode_json
(
scalar
read_file
(
$failures_file
));
my
$failed
=
eval
{
-
f
$failures_file
$test
->
{
results
}{
failed
}
=
[
keys
%$failed
];
&&
decode_json
(
scalar
read_file
(
$failures_file
))
};
$test
->
{
results
}{
success
}
=
!
@
{
$test
->
{
results
}{
failed
}};
$test
->
{
results
}{
failed
}
=
$failed
?
[
keys
%$failed
]
:
[]
;
$test
->
{
results
}{
success
}
=
$failed
&&
!
@
{
$test
->
{
results
}{
failed
}};
}
}
sub
build_firefox
{
sub
build_firefox
{
...
...
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