summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2022-09-27 11:39:25 -0700
committerMatt Clay <matt@mystile.com>2022-11-22 18:56:05 -0800
commitea9b9716f0630467b11f63e47058c2c49de5797c (patch)
tree6db82554bb27b04addf44aa971f76ef7c6a1d397
parent5f6537b644a8934de8a7b3ea603f134f23dc72fd (diff)
downloadansible-ea9b9716f0630467b11f63e47058c2c49de5797c.tar.gz
[stable-2.13] ansible-test - Improve pylint command consistency. (#78896)
* ansible-test - Improve pylint command consistency. Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> (cherry picked from commit bc274f5) Co-authored-by: Matt Clay <matt@mystile.com>
-rw-r--r--changelogs/fragments/ansible-test-pylint-command.yml2
-rw-r--r--test/lib/ansible_test/_internal/commands/sanity/pylint.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/changelogs/fragments/ansible-test-pylint-command.yml b/changelogs/fragments/ansible-test-pylint-command.yml
new file mode 100644
index 0000000000..7b8c320170
--- /dev/null
+++ b/changelogs/fragments/ansible-test-pylint-command.yml
@@ -0,0 +1,2 @@
+minor_changes:
+ - ansible-test - Improve consistency of executed ``pylint`` commands by making the plugins ordered.
diff --git a/test/lib/ansible_test/_internal/commands/sanity/pylint.py b/test/lib/ansible_test/_internal/commands/sanity/pylint.py
index 370e899843..6a250194e2 100644
--- a/test/lib/ansible_test/_internal/commands/sanity/pylint.py
+++ b/test/lib/ansible_test/_internal/commands/sanity/pylint.py
@@ -225,7 +225,7 @@ class PylintTest(SanitySingleVersion):
'--max-complexity', '20',
'--rcfile', rcfile,
'--output-format', 'json',
- '--load-plugins', ','.join(load_plugins),
+ '--load-plugins', ','.join(sorted(load_plugins)),
] + paths
if data_context().content.collection: