aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/ci
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-09-20 04:13:52 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-09-20 04:49:54 +0200
commit8b3e8b1912038fba6afb8ce47ef993d6ffa49f54 (patch)
treeb8749a45731bb6329b81a7154cab2753772ec23d /xtesting/ci
parent094012d09b08a269536821fbe337fbaeb6bad008 (diff)
Switch to py3.6 in containers
Xtesting has supported both py2 and py3. py3 is now selected due to the OPNFV Iruya planning closed to python2 EOL. It also removes energy as in master which should have been updated (pylint). Change-Id: Ic1113b95f85f5882676e10acea1159a808a98f32 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/ci')
-rw-r--r--xtesting/ci/run_tests.py5
-rw-r--r--xtesting/ci/testcases.yaml2
-rw-r--r--xtesting/ci/tier_builder.py2
-rw-r--r--xtesting/ci/tier_handler.py4
4 files changed, 6 insertions, 7 deletions
diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py
index c8e99663..7ec4dfce 100644
--- a/xtesting/ci/run_tests.py
+++ b/xtesting/ci/run_tests.py
@@ -46,10 +46,9 @@ class Result(enum.Enum):
class BlockingTestFailed(Exception):
"""Exception when the blocking test fails"""
- pass
-class RunTestsParser(object):
+class RunTestsParser():
"""Parser to run tests"""
# pylint: disable=too-few-public-methods
@@ -78,7 +77,7 @@ class RunTestsParser(object):
return vars(self.parser.parse_args(argv))
-class Runner(object):
+class Runner():
"""Runner class"""
def __init__(self):
diff --git a/xtesting/ci/testcases.yaml b/xtesting/ci/testcases.yaml
index a5627d7a..d3df1efb 100644
--- a/xtesting/ci/testcases.yaml
+++ b/xtesting/ci/testcases.yaml
@@ -61,7 +61,7 @@ tiers:
name: 'robotframework'
args:
suites:
- - /usr/lib/python2.7/site-packages/xtesting/samples/HelloWorld.robot
+ - /usr/lib/python3.6/site-packages/xtesting/samples/HelloWorld.robot
variable:
- 'var01:foo'
- 'var02:bar'
diff --git a/xtesting/ci/tier_builder.py b/xtesting/ci/tier_builder.py
index b0050b13..27afc7d1 100644
--- a/xtesting/ci/tier_builder.py
+++ b/xtesting/ci/tier_builder.py
@@ -16,7 +16,7 @@ from xtesting.ci import tier_handler
from xtesting.utils import env
-class TierBuilder(object):
+class TierBuilder():
# pylint: disable=missing-docstring
def __init__(self, testcases_file):
diff --git a/xtesting/ci/tier_handler.py b/xtesting/ci/tier_handler.py
index 4b74e37c..8359d91c 100644
--- a/xtesting/ci/tier_handler.py
+++ b/xtesting/ci/tier_handler.py
@@ -34,7 +34,7 @@ def split_text(text, max_len):
return lines
-class Tier(object):
+class Tier():
def __init__(self, name, order, description=""):
self.tests_array = []
@@ -96,7 +96,7 @@ class Tier(object):
return msg.get_string()
-class TestCase(object):
+class TestCase():
def __init__(self, name, enabled, skipped, criteria, blocking,
description="", project=""):