mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
This is a kindof hackish fix to bring simpletest back to life so it can be published. A real fix will follow, which will involve fixing Litmus::UserAgentDetect.
This commit is contained in:
parent
370f46dc04
commit
2adfc83b65
@ -51,8 +51,10 @@ sub showTest {
|
||||
$time->date_separator("");
|
||||
my $curbuildtime = $time->ymd;
|
||||
my $prod = Litmus::DB::Product->search(name => "Firefox")->next();
|
||||
if (! $ua->buildid() || ! $ua->branch($prod) ||
|
||||
$ua->branch($prod)->branchid() != $branch->branchid() ||
|
||||
my $branch = Litmus::DB::Branch->search(product => $prod, name => "Trunk")->next();
|
||||
my @detectbranch = $ua->branch($prod);
|
||||
if (! $ua->buildid() || ! $detectbranch[0] ||
|
||||
$detectbranch[0]->branchid() != $branch->branchid() ||
|
||||
$curbuildtime - $ua->buildid() > $maxbuildage) {
|
||||
Litmus->template()->process("simpletest/simpletest.html.tmpl") ||
|
||||
internalError(Litmus->template()->error());
|
||||
|
Loading…
Reference in New Issue
Block a user