diff options
author | Sven Nierlein <sven@nierlein.org> | 2014-06-24 13:08:41 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2014-06-24 13:08:41 (GMT) |
commit | 7508da9360a77c6799e74a8109b768a1b8fbba11 (patch) | |
tree | 65a773b10464cf527a6402e207f92ac1118f2542 /plugins/t/check_snmp.t | |
parent | 580bdd286379f6d8b678b9a7472572cfa2684aaf (diff) | |
parent | b35d12e931c6d330291f5c5f4847c33a122c63cb (diff) | |
download | monitoring-plugins-7508da9360a77c6799e74a8109b768a1b8fbba11.tar.gz |
Merge pull request #1261 from sni/master
tests: always build and test on travis
Diffstat (limited to 'plugins/t/check_snmp.t')
-rw-r--r-- | plugins/t/check_snmp.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/t/check_snmp.t b/plugins/t/check_snmp.t index c35d782..2d6c44a 100644 --- a/plugins/t/check_snmp.t +++ b/plugins/t/check_snmp.t | |||
@@ -45,7 +45,7 @@ is( $res->return_code, 3, "Invalid protocol" ); | |||
45 | like( $res->output, "/check_snmp: Invalid SNMP version - 3c/" ); | 45 | like( $res->output, "/check_snmp: Invalid SNMP version - 3c/" ); |
46 | 46 | ||
47 | SKIP: { | 47 | SKIP: { |
48 | skip "no snmp host defined", 38 if ( ! $host_snmp ); | 48 | skip "no snmp host defined", 48 if ( ! $host_snmp ); |
49 | 49 | ||
50 | $res = NPTest->testCmd( "./check_snmp -H $host_snmp -C $snmp_community -o system.sysUpTime.0 -w 1: -c 1:"); | 50 | $res = NPTest->testCmd( "./check_snmp -H $host_snmp -C $snmp_community -o system.sysUpTime.0 -w 1: -c 1:"); |
51 | cmp_ok( $res->return_code, '==', 0, "Exit OK when querying uptime" ); | 51 | cmp_ok( $res->return_code, '==', 0, "Exit OK when querying uptime" ); |