From 5382cc0098add9a3f1465c88a9bb308e38a01742 Mon Sep 17 00:00:00 2001 From: Ramon Nou Date: Wed, 15 Jun 2022 09:11:38 +0200 Subject: [PATCH 1/2] Updated Testing parallelism --- .gitlab-ci.yml | 2 +- tests/integration/directories/test_pathresolution.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eeca86f3f..f10ab485a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -138,7 +138,7 @@ gkfs:integration: - export PATH=${PATH}:/usr/local/bin - mkdir -p ${BUILD_PATH}/tests/run - cd ${BUILD_PATH}/tests/integration - - ${PYTEST} -v -n 1 + - ${PYTEST} -v -n $(nproc) ${INTEGRATION_TESTS_BIN_PATH}/${SUBTEST} --basetemp=${BUILD_PATH}/tests/run/${SUBTEST} --junit-xml=report.xml diff --git a/tests/integration/directories/test_pathresolution.py b/tests/integration/directories/test_pathresolution.py index 9cd4cf8b8..8087aa50e 100644 --- a/tests/integration/directories/test_pathresolution.py +++ b/tests/integration/directories/test_pathresolution.py @@ -42,11 +42,11 @@ nonexisting = "nonexisting" #@pytest.mark.xfail(reason="invalid errno returned on success") def test_pathresolution(gkfs_daemon, gkfs_client): """Testing different path resolution capabilities""" - + pid = os.getpid().__str__() mountdir = gkfs_daemon.mountdir - extdir = "/tmp/ext.tmp" - ext_linkdir = "/tmp/link.tmp" - nodir = "/tmp/notexistent" + extdir = "/tmp/" + pid + "ext.tmp" + ext_linkdir = "/tmp/" + pid + "link.tmp" + nodir = "/tmp/" + pid + "notexistent" intdir = mountdir / "int" # Just clean if it exists, due to a failed test -- GitLab From d8c48c13e42da485171588c598530107d3fe7a2f Mon Sep 17 00:00:00 2001 From: Marc Vef Date: Mon, 20 Jun 2022 12:32:59 +0200 Subject: [PATCH 2/2] Added changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a7d164c9..29a5655c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### New ### Changed +- Support parallelism for path resolution tests ([!145](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/145)). ### Removed ### Fixed - Using `unlink` now fails if it is a directory unless the `AT_REMOVEDIR` flag is used (POSIX compliance) ([!139](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/139)). -- GitLab