diff --git a/CHANGELOG.md b/CHANGELOG.md index 568438ff6519cc4aebbc4b3ec5e97b7ad383403e..19c3d3960e57edc5417976e528f977e1e03e8416 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### New ### Changed - Support parallelism for path resolution tests ([!145](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/145)). +- Support parallelism for symlink tests ([!147](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/147)). ### 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_symlink.py b/tests/integration/directories/test_symlink.py index 9c3d0fa16d1f628e22b2ff07d3acc6ed41a7db88..466b6371eb3c0cc116d40ca92b9c10724e6008ec 100644 --- a/tests/integration/directories/test_symlink.py +++ b/tests/integration/directories/test_symlink.py @@ -42,11 +42,10 @@ nonexisting = "nonexisting" #@pytest.mark.xfail(reason="invalid errno returned on success") def test_symlink(gkfs_daemon, gkfs_client): """Testing different path resolution capabilities: symlinks""" - + 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" intdir = mountdir / "int" # Just clean if it exists, due to a failed test @@ -74,11 +73,11 @@ def test_symlink(gkfs_daemon, gkfs_client): ret = gkfs_client.symlink(extdir, ext_linkdir) assert ret.retval == 0 - ret = gkfs_client.getcwd_validate(str(extdir) + "/../link.tmp") + ret = gkfs_client.getcwd_validate(str(extdir) + "/../"+pid+"link.tmp") assert ret.path == str(extdir) assert ret.retval == 0 - ret = gkfs_client.getcwd_validate(str(intdir) + "/../../../../../../../../../../../../../../../../../../../.."+str(extdir) + "/../link.tmp/../link.tmp/../../../../../../../../../../../../../../../../../../../../.." + str(intdir)) + ret = gkfs_client.getcwd_validate(str(intdir) + "/../../../../../../../../../../../../../../../../../../../.."+str(extdir) + "/../"+ pid +"link.tmp/../"+ pid +"link.tmp/../../../../../../../../../../../../../../../../../../../../.." + str(intdir)) assert ret.path == str(intdir) assert ret.retval == 0