mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Check python scirpts with "py_compile"
- leaves a mess behind, but works
This commit is contained in:
parent
08f196eb10
commit
f007901b64
19
t/test.t
19
t/test.t
@ -95,19 +95,12 @@ sub process_file {
|
||||
);
|
||||
}
|
||||
elsif ( $interpreter =~ m{python} ) {
|
||||
SKIP: {
|
||||
skip 'need better syntax check for python', 1;
|
||||
run_check(
|
||||
{ command => [
|
||||
'pylint', '--rcfile=/dev/null',
|
||||
'--errors-only', '--report=no',
|
||||
$file
|
||||
],
|
||||
description => 'python syntax check',
|
||||
filename => $filename
|
||||
}
|
||||
);
|
||||
}
|
||||
run_check(
|
||||
{ command => [ 'python', '-m', 'py_compile', $file ],
|
||||
description => 'python compile',
|
||||
filename => $filename
|
||||
}
|
||||
);
|
||||
}
|
||||
elsif ( $interpreter =~ m{php} ) {
|
||||
run_check(
|
||||
|
Loading…
Reference in New Issue
Block a user