aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2022-04-15 16:34:34 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2022-04-15 16:36:26 +0200
commit33a884eae2153a2ea91b4bce79b06028e783e8bf (patch)
tree19a634d3792ba0cf040727042d87b152bf3d8c01
parentd941d9be879512cbb6be3e0d98642f876bab1269 (diff)
Change working dir
/ is no longer good as we allow non root user. Change-Id: If2483f7d177db8f2b99e05456d1ea803e3153466 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--docker/core/Dockerfile1
-rw-r--r--xtesting/core/campaign.py1
2 files changed, 2 insertions, 0 deletions
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()