diff --git a/test/integration/targets/uri/files/testserver.ps1 b/test/integration/targets/uri/files/testserver.ps1 index 5a0655516c..6df4bd05f9 100644 --- a/test/integration/targets/uri/files/testserver.ps1 +++ b/test/integration/targets/uri/files/testserver.ps1 @@ -1,5 +1,5 @@ param ( - [int]$port = 8000, + [int]$port = 8000 ) $listener = New-Object Net.HttpListener diff --git a/test/integration/targets/win_script/files/space path/test_script.ps1 b/test/integration/targets/win_script/files/space path/test_script.ps1 index 24e0ab2ed5..10dd9c8c4d 100644 --- a/test/integration/targets/win_script/files/space path/test_script.ps1 +++ b/test/integration/targets/win_script/files/space path/test_script.ps1 @@ -1 +1 @@ -Write-Host "Ansible supports spaces in the path to the script." +Write-Output "Ansible supports spaces in the path to the script." diff --git a/test/runner/lib/sanity/pylint.py b/test/runner/lib/sanity/pylint.py index e07d51f9f9..9715fb69dc 100644 --- a/test/runner/lib/sanity/pylint.py +++ b/test/runner/lib/sanity/pylint.py @@ -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 = []