mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-22 10:10:14 -04:00
fix: test: Resolve the system_test_dir in pytest
If the system_test_dir contains a symlink, then it might cause issues further down when using relative_to(), unless it is resolved first. This has been observed on FreeBSD13 in CI where /home is a symlink to /usr/home. Merge branch 'nicki/pytest-freebsd13-artifacts-path' into 'main' See merge request isc-projects/bind9!11490
This commit is contained in:
commit
f81e90e3e1
1 changed files with 1 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ def system_test_dir(request, system_test_name, expected_artifacts):
|
|||
), f"Unexpected files found in test directory: {unexpected_files}"
|
||||
|
||||
# Create a temporary directory with a copy of the original system test dir contents
|
||||
system_test_root = Path(os.environ["srcdir"])
|
||||
system_test_root = Path(os.environ["srcdir"]).resolve()
|
||||
testdir = Path(
|
||||
tempfile.mkdtemp(prefix=f"{system_test_name}_tmp_", dir=system_test_root)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue