From ea9b9716f0630467b11f63e47058c2c49de5797c Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 27 Sep 2022 11:39:25 -0700 Subject: [PATCH] [stable-2.13] ansible-test - Improve pylint command consistency. (#78896) * ansible-test - Improve pylint command consistency. Co-authored-by: Sviatoslav Sydorenko (cherry picked from commit bc274f5) Co-authored-by: Matt Clay --- changelogs/fragments/ansible-test-pylint-command.yml | 2 ++ test/lib/ansible_test/_internal/commands/sanity/pylint.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/ansible-test-pylint-command.yml diff --git a/changelogs/fragments/ansible-test-pylint-command.yml b/changelogs/fragments/ansible-test-pylint-command.yml new file mode 100644 index 00000000000..7b8c320170e --- /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 370e8998438..6a250194e27 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: