1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

t: fixing skip

This commit is contained in:
Steve Schnepp 2019-07-27 21:15:35 +02:00
parent f42fdaa669
commit 878e733430

View file

@ -50,8 +50,10 @@ sub process_file {
use v5.10.1;
if ( -r "$file.nocheck") {
skip( sprintf("\nFile '%s' has a .nocheck flag. Ignoring\n", $file), 1);
pass("Not pretending everything is ok");
SKIP: {
skip( sprintf("\nFile '%s' has a .nocheck flag. Ignoring\n", $file), 1);
pass("Not pretending everything is ok");
}
}
elsif ( ! -x $file ) {
# missing executable flag