From ac8db54cb1e1f2179bc4485292eab85c6d1140ef Mon Sep 17 00:00:00 2001 From: Stig Sandbeck Mathisen Date: Sun, 5 Oct 2014 01:48:53 +0200 Subject: [PATCH] Use eval EXPR to load Munin::Plugin, for automated tests --- plugins/zeo/zeo_monitor_ | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/zeo/zeo_monitor_ b/plugins/zeo/zeo_monitor_ index 60691989..4af76406 100755 --- a/plugins/zeo/zeo_monitor_ +++ b/plugins/zeo/zeo_monitor_ @@ -64,7 +64,11 @@ #%# capabilities=autoconf suggest use strict; -use Munin::Plugin; + +# Need to use eval EXPR here. "-T" is used on the command line, and +# munin is not installable in a reasonable way for automated testing. +eval 'use Munin::Plugin; 1;' or die 'Please install Munin::Plugin'; + use File::Basename; use IO::Socket::UNIX qw(SOCK_STREAM);