diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-02-25 16:17:05 +0100 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-02-25 16:17:28 +0100 |
commit | 981cd0404a2a3a0a8a320c1709151b18075a3655 (patch) | |
tree | ad2da88be292a2f472c8ba4fbcca8f179765f51b | |
parent | 5c7b05750982bca4528c5acde579012f7ccf9120 (diff) | |
download | bugzilla-981cd0404a2a3a0a8a320c1709151b18075a3655.tar.gz bugzilla-981cd0404a2a3a0a8a320c1709151b18075a3655.tar.xz |
Bug 1250944 - 001compile.t doesn't set error mode, so errors exit the test suite
r=dkl,a=dylan
-rw-r--r-- | Bugzilla/Error.pm | 1 | ||||
-rw-r--r-- | t/001compile.t | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm index 77a272e1e..864024794 100644 --- a/Bugzilla/Error.pm +++ b/Bugzilla/Error.pm @@ -25,7 +25,6 @@ use Date::Format; sub _throw_error { my ($name, $error, $vars) = @_; - my $dbh = Bugzilla->dbh; my $cache = Bugzilla->request_cache; $vars ||= {}; diff --git a/t/001compile.t b/t/001compile.t index da95b7327..e061b06c6 100644 --- a/t/001compile.t +++ b/t/001compile.t @@ -25,6 +25,7 @@ BEGIN { use_ok('Bugzilla::Install::Requirements'); use_ok('Bugzilla'); } +Bugzilla->usage_mode(USAGE_MODE_TEST); sub compile_file { my ($file) = @_; |