GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Unverified Commit be528bc8 authored by boklm's avatar 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
......@@ -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) : (),
$previous ? (parent_results => $previous) : (),
});
$res{args} = [ $tbbinfos ],
return %res;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment