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
be528bc8
Unverified
Commit
be528bc8
authored
Sep 01, 2014
by
boklm
Browse files
config/browser-unit: add testsuite version in report name
This allows us to retest everything when we update the testsuite.
parent
200f3ec4
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/browser-unit
View file @
be528bc8
...
...
@@ -9,11 +9,12 @@ use TBBTestSuite::BrowserGit qw(git_clone_fetch get_commits_by_branch
my
$torbrowser_branch
=
'
tor-browser-24.7.0esr-3.x-1
';
my
$esr_branch
=
'
esr24
';
my
$testsuite_version
=
'
1
';
sub
commit_to_name
{
my
(
$commit
)
=
@_
;
$commit
=
substr
$commit
,
0
,
20
;
return
"
browser-
$commit
";
return
("
browser-
$testsuite_version
-
$commit
",
"
browser-
$commit
"
)
;
}
git_clone_fetch
;
...
...
@@ -25,17 +26,18 @@ my %res = (
'
reports-url
'
=>
'
https://people.torproject.org/~boklm/tbbtests/
',
tags
=>
[
$torbrowser_branch
],
);
my
(
$previous
,
$p
)
;
my
$previous
;
for
my
$commit
(
reverse
@commits
)
{
my
$name
=
commit_to_name
(
$commit
);
$p
=
$previous
?
[
$previous
,
$previous
]
:
undef
;
$previous
=
$name
;
next
if
-
d
"
$options
->{'reports-dir'}/r/
$name
";
my
(
$name
,
$fname
)
=
commit_to_name
(
$commit
);
if
(
-
d
"
$options
->{'reports-dir'}/r/
$name
")
{
$previous
=
[
$name
,
$fname
];
next
;
}
$res
{
name
}
=
$name
;
my
$tbbinfos
=
TBBTestSuite::BrowserUnitTests::
get_tbbinfos
({
browserdir
=>
$
TBBTestSuite::BrowserGit::
clone_dir
,
commit
=>
substr
(
$commit
,
0
,
20
),
$p
?
(
parent_results
=>
$p
)
:
(),
$p
revious
?
(
parent_results
=>
$p
revious
)
:
(),
});
$res
{
args
}
=
[
$tbbinfos
],
return
%res
;
...
...
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