[monitoring-plugins] script tests: fix relative lib path in utils test

Sven Nierlein git at monitoring-plugins.org
Mon Mar 13 16:10:12 CET 2017


 Module: monitoring-plugins
 Branch: master
 Commit: 4acddec00a0b9fab4f8dd51cf8a57d3c0f9efd9b
 Author: Sven Nierlein <sven at nierlein.de>
   Date: Mon Mar 13 13:27:03 2017 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=4acddec

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 at nierlein.de>

---

 plugins-scripts/t/utils.t | 1 +
 1 file changed, 1 insertion(+)

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;
 use Test::More;
 use NPTest;
 
+use lib ".";
 use lib "..";
 use utils;
 



More information about the Commits mailing list