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:
zach%zachlipton.com 2005-08-09 05:03:22 +00:00
parent 370f46dc04
commit 2adfc83b65

View File

@ -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());