mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Tidy with perltidy
This commit is contained in:
parent
c4ed6e7737
commit
6b5e75a04c
1 changed files with 11 additions and 2 deletions
13
t/test.t
13
t/test.t
|
@ -66,7 +66,10 @@ sub process_file {
|
||||||
}
|
}
|
||||||
elsif ( $interpreter =~ m{python} ) {
|
elsif ( $interpreter =~ m{python} ) {
|
||||||
ok( check_file_with(
|
ok( check_file_with(
|
||||||
[ 'pylint', '--rcfile=/dev/null', '--errors-only', '--report=no', $file ]
|
[ 'pylint', '--rcfile=/dev/null',
|
||||||
|
'--errors-only', '--report=no',
|
||||||
|
$file
|
||||||
|
]
|
||||||
),
|
),
|
||||||
$filename . " python syntax check"
|
$filename . " python syntax check"
|
||||||
);
|
);
|
||||||
|
@ -102,7 +105,13 @@ sub check_file_with {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
diag(sprintf("\nCommand: %s\n\nSTDOUT:\n\n%s\n\nSTDERR:\n\n%s\n\n", join(" ", @{$check_command}), $stdout, $stderr));
|
diag(
|
||||||
|
sprintf(
|
||||||
|
"\nCommand: %s\n\nSTDOUT:\n\n%s\n\nSTDERR:\n\n%s\n\n",
|
||||||
|
join( " ", @{$check_command} ),
|
||||||
|
$stdout, $stderr
|
||||||
|
)
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue