Change working dir 12/73312/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Fri, 15 Apr 2022 14:34:34 +0000 (16:34 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 15 Apr 2022 14:36:26 +0000 (16:36 +0200)
/ is no longer good as we allow non root user.

Change-Id: If2483f7d177db8f2b99e05456d1ea803e3153466
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
docker/core/Dockerfile
xtesting/core/campaign.py

index 668561f..3ee3570 100644 (file)
@@ -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"]
index daab853..901df58 100644 (file)
@@ -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()