[Rt-commit] rtir branch, 4.0-trunk, updated. 4.0.0-52-gfb99e8f
Shawn Moore
shawn at bestpractical.com
Wed Jul 12 14:22:11 EDT 2017
The branch, 4.0-trunk has been updated
via fb99e8f90dedc99c566476a53d7d968a31fd4ded (commit)
via 78096541087930705f5f5e2d412d54fc8ec9d28a (commit)
from cdc89b7e1467133ea08a550d33e81df96d48eba0 (commit)
Summary of changes:
t/upgrade/2.6.0-to-current.t | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 78096541087930705f5f5e2d412d54fc8ec9d28a
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Tue Jul 11 16:04:12 2017 -0400
Wrap RT upgrade to catch warnings
diff --git a/t/upgrade/2.6.0-to-current.t b/t/upgrade/2.6.0-to-current.t
index 0836f12..de498cb 100644
--- a/t/upgrade/2.6.0-to-current.t
+++ b/t/upgrade/2.6.0-to-current.t
@@ -2,6 +2,7 @@
use strict;
use warnings;
+use Test::Warn;
BEGIN { unless ( $ENV{RTIR_TEST_UPGRADE} ) {
require Test::More;
@@ -42,7 +43,11 @@ use RT::IR::Test tests => undef;
if $RT::VERSION =~ /-/
&& RT::Handle::cmp_version($all_versions[-2], $upgrades[-1]) == 0;
- my ($status, $msg) = RT::IR::Test->apply_upgrade( '../rt/etc/upgrade/', @upgrades);
+ my ($status, $msg);
+ warnings_like {
+ ($status, $msg) = RT::IR::Test->apply_upgrade( '../rt/etc/upgrade/', @upgrades);
+ } [ qr{Unable to load scrip} ];
+
ok $status, "applied " . scalar(@upgrades) . " RT version upgrades" or diag "error: $msg";
}
commit fb99e8f90dedc99c566476a53d7d968a31fd4ded
Merge: cdc89b7 7809654
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Wed Jul 12 14:22:03 2017 -0400
Merge branch '4.0/catch-upgrade-test-warning' into 4.0-trunk
-----------------------------------------------------------------------
More information about the rt-commit
mailing list