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:
William Giokas 2018-09-17 16:34:46 -06:00 committed by rallytime
parent 37cbd274e5
commit fde757517f
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -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