diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eeca86f3fa79284e1c29b9f8f39cb09de345afb7..f10ab485a891fa517596ab4d689c61bca12e1c1d 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/CHANGELOG.md b/CHANGELOG.md index 6a7d164c9987c7dd8dd89206210000dd2160ebaa..29a5655c40a73199ec65feb29a5c865faa811c82 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)). diff --git a/tests/integration/directories/test_pathresolution.py b/tests/integration/directories/test_pathresolution.py index 9cd4cf8b8122f9fc1ae78463786fa03a1bb52b1f..8087aa50e634b712eaa714cf1c2a43f7401c260e 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