diff options
author | Sven Nierlein <sven@nierlein.de> | 2017-03-13 12:27:03 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2017-03-13 12:27:03 (GMT) |
commit | 4acddec00a0b9fab4f8dd51cf8a57d3c0f9efd9b (patch) | |
tree | d68d79e789dd055fa18d82f017133d5375c72327 /plugins-scripts/t | |
parent | 77aa6d4ebf1bd3567395c92b9e5cc9daa74e9838 (diff) | |
download | monitoring-plugins-4acddec.tar.gz |
script tests: fix relative lib path in utils testrefs/pull/1471/head
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>
Diffstat (limited to 'plugins-scripts/t')
-rw-r--r-- | plugins-scripts/t/utils.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins-scripts/t/utils.t b/plugins-scripts/t/utils.t index 9c2c569..5c23179 100644 --- a/plugins-scripts/t/utils.t +++ b/plugins-scripts/t/utils.t | |||
@@ -10,6 +10,7 @@ use strict; | |||
10 | use Test::More; | 10 | use Test::More; |
11 | use NPTest; | 11 | use NPTest; |
12 | 12 | ||
13 | use lib "."; | ||
13 | use lib ".."; | 14 | use lib ".."; |
14 | use utils; | 15 | use utils; |
15 | 16 | ||