mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Order the runtests suites
Uses an ordered dictionary instead of a default python dict when describing the `TEST_SUITES` variable. Sorts alphabetically based on the name of the suite.
This commit is contained in:
parent
37cbd274e5
commit
fde757517f
1 changed files with 5 additions and 1 deletions
|
@ -11,6 +11,7 @@ import os
|
|||
import sys
|
||||
import time
|
||||
import warnings
|
||||
import collections
|
||||
|
||||
TESTS_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
|
||||
if os.name == 'nt':
|
||||
|
@ -97,7 +98,7 @@ MAX_OPEN_FILES = {
|
|||
|
||||
# Combine info from command line options and test suite directories. A test
|
||||
# suite is a python package of test modules relative to the tests directory.
|
||||
TEST_SUITES = {
|
||||
TEST_SUITES_UNORDERED = {
|
||||
'unit':
|
||||
{'display_name': 'Unit',
|
||||
'path': 'unit'},
|
||||
|
@ -172,6 +173,9 @@ TEST_SUITES = {
|
|||
'path': 'integration/externalapi'},
|
||||
}
|
||||
|
||||
TEST_SUITES = collections.OrderedDict(sorted(TEST_SUITES_UNORDERED.items(),
|
||||
key=lambda x: x[0]))
|
||||
|
||||
|
||||
class SaltTestsuiteParser(SaltCoverageTestingParser):
|
||||
support_docker_execution = True
|
||||
|
|
Loading…
Add table
Reference in a new issue