From: Cédric Ollivier Date: Fri, 15 Apr 2022 14:34:34 +0000 (+0200) Subject: Change working dir X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F12%2F73312%2F1;p=functest-xtesting.git Change working dir / is no longer good as we allow non root user. Change-Id: If2483f7d177db8f2b99e05456d1ea803e3153466 Signed-off-by: Cédric Ollivier --- diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile index 668561f1..3ee3570f 100644 --- a/docker/core/Dockerfile +++ b/docker/core/Dockerfile @@ -29,4 +29,5 @@ RUN apk -U upgrade && \ apk del .build-deps COPY testcases.yaml /usr/lib/python3.9/site-packages/xtesting/ci/testcases.yaml USER xtesting +WORKDIR /var/lib/xtesting/results CMD ["run_tests", "-t", "all"] diff --git a/xtesting/core/campaign.py b/xtesting/core/campaign.py index daab853b..901df587 100644 --- a/xtesting/core/campaign.py +++ b/xtesting/core/campaign.py @@ -226,4 +226,5 @@ def main(): logging.config.fileConfig(config.get_xtesting_config( 'logging.ini', constants.INI_PATH_DEFAULT)) logging.captureWarnings(True) + os.chdir(testcase.TestCase.dir_results) Campaign.zip_campaign_files()