1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Use eval EXPR to load Munin::Plugin, for automated tests

This commit is contained in:
Stig Sandbeck Mathisen 2014-10-05 01:48:53 +02:00 committed by Stig Sandbeck Mathisen
parent 76e4b0332c
commit ac8db54cb1

View file

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