From 887ab8b103a146d9098a1ee215510ca90540ddd2 Mon Sep 17 00:00:00 2001 From: Ramon Nou Date: Mon, 20 Jun 2022 13:11:05 +0000 Subject: [PATCH] Parallelism in Symlink test fixed --- CHANGELOG.md | 1 + tests/integration/directories/test_symlink.py | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 568438ff6..19c3d3960 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 9c3d0fa16..466b6371e 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 -- GitLab