Miscellaneous test fixes. (#35301)
* Add missing pylint test for invalid path. * Fix syntax in integration test. * Use Write-Output in win_script test script. * Fix pylint in explain mode.
This commit is contained in:
parent
d7f71ce6ae
commit
8ea0bfe9a3
3 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
param (
|
||||
[int]$port = 8000,
|
||||
[int]$port = 8000
|
||||
)
|
||||
|
||||
$listener = New-Object Net.HttpListener
|
||||
|
|
|
@ -1 +1 @@
|
|||
Write-Host "Ansible supports spaces in the path to the script."
|
||||
Write-Output "Ansible supports spaces in the path to the script."
|
||||
|
|
|
@ -91,6 +91,10 @@ class PylintTest(SanitySingleVersion):
|
|||
|
||||
path, code = ignore_entry.split(' ', 1)
|
||||
|
||||
if not os.path.exists(path):
|
||||
invalid_ignores.append((line, 'Remove "%s" since it does not exist' % path))
|
||||
continue
|
||||
|
||||
if ' ' in code:
|
||||
code, version = code.split(' ', 1)
|
||||
|
||||
|
@ -161,6 +165,9 @@ class PylintTest(SanitySingleVersion):
|
|||
code=m['symbol'],
|
||||
) for m in messages]
|
||||
|
||||
if args.explain:
|
||||
return SanitySuccess(self.name)
|
||||
|
||||
line = 0
|
||||
|
||||
filtered = []
|
||||
|
|
Loading…
Reference in a new issue