aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core/feature.py
AgeCommit message (Collapse)AuthorFilesLines
2019-05-23Stop setting utf-8 in decode/encode callsCédric Ollivier1-2/+2
It's the default value. Change-Id: I301f750cabc41a1564a700ae8d7328f195a4ae9b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 0d308f4db3434ae6f8147f0f452e5c542429e636)
2019-05-23Update to Python3Cédric Ollivier1-3/+3
Now Xtesting containers use Python3 instead of python2. https://mail.python.org/pipermail/python-dev/2018-March/152348.html It also updates robotframework to latest release. Change-Id: I57e0d8b1af9aeaae0c445941a9bdf0b8bd346834 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 6f8aa2785e0239dbed22fcb4d093a5bc110bcc3c)
2018-12-27Allow printing bash cmd output in consoleCédric Ollivier1-8/+20
It switches to Popen to print real-time console. Console has to be enabled per testcase (testcases.yaml). Change-Id: Id36b42c8409262f7c443e98ae2bcc465984b287f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit ebe4291c4457d84cb8425999cfa12371c1c7ce40)
2018-12-01Set shell=True in subprocess.check_callCédric Ollivier1-9/+6
It allows running multiple shell instructions (see third). Change-Id: I132813c51d42f0fb4bc729d315c468d426f2fb3c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit eae8283aaadeb77884406ded028f2e414659c3b3)
2018-08-12Leverage on abc and stevedoreCédric Ollivier1-5/+4
Change-Id: I7b3c4c0c5dd0c9e6fb3e52c3fff5221d4b831b02 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-05-29Remove Feature logger0.42Panagiotis Karalis1-29/+7
This class atttribute is removed as it's quite useless (it forces one module per project). All messages are now printed to xtesting.log whatever the namespace and all warnings are printed in console. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I6860eaf427093ea21b3bd78650bec7939e947b2d Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-17Create a static method to configure logger0.41Cédric Ollivier1-4/+9
It helps OPNFV Features to configure their multiple loggers as self.logger is not suitable in case of multiple modules. Change-Id: I5794a3e323d70abfdd85db89a9890488828efd88 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-28Switch from /home/opnfv/functest to /var/lib/xtestingCédric Ollivier1-1/+1
Functest containers will have to create symlinks to allow publishing artifacts. All classes create the mandatory dirs. Change-Id: Ia1f215005d553dd6d64685e4d8a3f5c843c5db7a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-28Rename all Functest refs to XtestingCédric Ollivier1-0/+133
It mainly renames python modules and then the related documentation config files. Change-Id: I186010bb88d3d39afe7b8fd1ebcef9c690cc1282 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>