From 078cb93b70495a3a7ebacf5875e2eeb245eb9927 Mon Sep 17 00:00:00 2001 From: alaskowski <alaskowski@ethz.ch> Date: Tue, 18 Jul 2023 12:44:10 +0200 Subject: [PATCH] SSDM-13735: Fixing test config for pybis --- .../src/python/tests/jenkinstest/test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api-openbis-python3-pybis/src/python/tests/jenkinstest/test.py b/api-openbis-python3-pybis/src/python/tests/jenkinstest/test.py index 63468cc2fba..a072111d6d6 100644 --- a/api-openbis-python3-pybis/src/python/tests/jenkinstest/test.py +++ b/api-openbis-python3-pybis/src/python/tests/jenkinstest/test.py @@ -13,10 +13,11 @@ # limitations under the License. # -import os +# import os import settings import testcase +import util as util class TestCase(testcase.TestCase): @@ -27,8 +28,10 @@ class TestCase(testcase.TestCase): # pybis should be installed on the jenkins job configuration level self.openbisController = self.createOpenbisController() self.openbisController.allUp() + + util.executeCommand(['pytest', '--junitxml=test_results_pybis.xml', 'api-openbis-python3-pybis/src/python/tests']) # run tests - os.system('pytest --junitxml=test_results_pybis.xml api-openbis-python3-pybis/src/python/tests') + # os.system('pytest --junitxml=test_results_pybis.xml api-openbis-python3-pybis/src/python/tests') TestCase(settings, __file__).runTest() -- GitLab