1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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:
Matt Clay 2018-01-24 10:22:04 -08:00 committed by GitHub
parent d7f71ce6ae
commit 8ea0bfe9a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,5 @@
param (
[int]$port = 8000,
[int]$port = 8000
)
$listener = New-Object Net.HttpListener

View file

@ -1 +1 @@
Write-Host "Ansible supports spaces in the path to the script."
Write-Output "Ansible supports spaces in the path to the script."

View file

@ -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 = []