summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.de>2017-03-13 13:27:03 +0100
committerSven Nierlein <sven@nierlein.de>2017-03-13 13:27:03 +0100
commit4acddec00a0b9fab4f8dd51cf8a57d3c0f9efd9b (patch)
treed68d79e789dd055fa18d82f017133d5375c72327
parent77aa6d4ebf1bd3567395c92b9e5cc9daa74e9838 (diff)
downloadmonitoring-plugins-4acddec.tar.gz
script tests: fix relative lib path in utils test
utils.pm uses relative include ".." but the path is relativ to the current folder, so it does not work when running "perl t/utils.t". Just add another lib of "." fixes that. We could use FindBin but we don't want to make it unnecessarily complicated. Signed-off-by: Sven Nierlein <sven@nierlein.de>
-rw-r--r--plugins-scripts/t/utils.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins-scripts/t/utils.t b/plugins-scripts/t/utils.t
index 9c2c5695..5c231791 100644
--- a/plugins-scripts/t/utils.t
+++ b/plugins-scripts/t/utils.t
@@ -10,6 +10,7 @@ use strict;
10use Test::More; 10use Test::More;
11use NPTest; 11use NPTest;
12 12
13use lib ".";
13use lib ".."; 14use lib "..";
14use utils; 15use utils;
15 16