Code

Check_disk now calls stat() for all filesystems to check.
[nagiosplug.git] / plugins / t / check_disk.t
index 5c6aa39a3538713369379961d7283fb669ff8706..4f5c4bc4a9ce2100ceded22555a7add9f982d304 100644 (file)
@@ -275,7 +275,7 @@ TODO: {
 
 $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -p /bob" );
 cmp_ok( $result->return_code, '==', 2, "Checking /bob - return error because /bob does not exist" );
-cmp_ok( $result->output, 'eq', 'DISK CRITICAL - /bob does not exist', 'Output OK');
+like( $result->output, '/^DISK CRITICAL - /bob is not accessible:.*$/', 'Output OK');
 
 $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -p /" );
 my $root_output = $result->output;