Allow to exclude Ubuntu test results in reporter

There is a need to upload tests results for CentOS
only, so adding a possibility to exclude Ubuntu from
operation systems in TestRail reporter script.

Change-Id: Ib319536768c94737b9706bfb67ae10cf844108e9
Partial-bug: #1488149
This commit is contained in:
Artem Panchenko 2015-08-31 18:20:58 +03:00
parent 247203de91
commit d2dae3c988

View File

@ -59,10 +59,12 @@ class TestRailSettings(object):
tests_include = os.environ.get('TESTRAIL_TEST_INCLUDE', None)
tests_exclude = os.environ.get('TESTRAIL_TEST_EXCLUDE', None)
previous_results_depth = os.environ.get('TESTRAIL_TESTS_DEPTH', 5)
operation_systems = [
os.environ.get('TESTRAIL_UBUNTU_RELEASE', 'Ubuntu 14.04')
]
operation_systems = []
centos_enabled = os.environ.get('USE_CENTOS', 'false') == 'true'
ubuntu_enabled = os.environ.get('USE_UBUNTU', 'true') == 'true'
if centos_enabled:
operation_systems.append(os.environ.get(
'TESTRAIL_CENTOS_RELEASE', 'Centos 6.5'))
if ubuntu_enabled:
operation_systems.append(os.environ.get(
'TESTRAIL_UBUNTU_RELEASE', 'Ubuntu 14.04'))