[monitoring-plugins] Creating and mounting randisk to make use of ...

Jan Wagner git at monitoring-plugins.org
Sun Nov 20 20:50:11 CET 2016


 Module: monitoring-plugins
 Branch: master
 Commit: 6d0c1116317ed786971c67a325d67edce37bc746
 Author: Jan Wagner <waja at cyconet.org>
   Date: Sun Nov 20 17:56:47 2016 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6d0c111

Creating and mounting randisk to make use of check_disk tests

---

 .travis.yml                   | 1 +
 plugins/t/NPTest.cache.travis | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index dcf13d5..fb8fbe7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -45,6 +45,7 @@ before_script:
   - touch ~/.ssh/config
   - sudo rm -f /usr/share/mibs/ietf/SNMPv2-PDU /usr/share/mibs/ietf/IPSEC-SPD-MIB /usr/share/mibs/ietf/IPATM-IPMC-MIB /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
   - sudo mkdir -p /var/lib/snmp/mib_indexes
+  - sudo mkdir /media/ramdisk && sudo chmod 777 /media/ramdisk && sudo mount -t tmpfs -o size=20% none /media/ramdisk
 
 script:
   - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make test; fi
diff --git a/plugins/t/NPTest.cache.travis b/plugins/t/NPTest.cache.travis
index 5d9c5ff..bcec985 100644
--- a/plugins/t/NPTest.cache.travis
+++ b/plugins/t/NPTest.cache.travis
@@ -26,7 +26,7 @@
   'NP_HOST_TCP_SMTP_TLS' => '',
   'NP_INTERNET_ACCESS' => 'yes',
   'NP_LDAP_BASE_DN' => 'cn=admin,dc=nodomain',
-  'NP_MOUNTPOINT2_VALID' => '',
+  'NP_MOUNTPOINT2_VALID' => '/media/ramdisk',
   'NP_MOUNTPOINT_VALID' => '/',
   'NP_MYSQL_SERVER' => 'localhost',
   'NP_HOST_UDP_TIME' => 'localhost',



More information about the Commits mailing list