Commit 981cd040 authored by Dylan Hardison's avatar Dylan Hardison

Bug 1250944 - 001compile.t doesn't set error mode, so errors exit the test suite

r=dkl,a=dylan
parent 5c7b0575
...@@ -25,7 +25,6 @@ use Date::Format; ...@@ -25,7 +25,6 @@ use Date::Format;
sub _throw_error { sub _throw_error {
my ($name, $error, $vars) = @_; my ($name, $error, $vars) = @_;
my $dbh = Bugzilla->dbh;
my $cache = Bugzilla->request_cache; my $cache = Bugzilla->request_cache;
$vars ||= {}; $vars ||= {};
......
...@@ -25,6 +25,7 @@ BEGIN { ...@@ -25,6 +25,7 @@ BEGIN {
use_ok('Bugzilla::Install::Requirements'); use_ok('Bugzilla::Install::Requirements');
use_ok('Bugzilla'); use_ok('Bugzilla');
} }
Bugzilla->usage_mode(USAGE_MODE_TEST);
sub compile_file { sub compile_file {
my ($file) = @_; my ($file) = @_;
......
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