mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 04:09:59 -04:00
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.
(cherry picked from commit b1e3469059)
This commit is contained in:
parent
e3caaa16f1
commit
77a627dfd5
1 changed files with 3 additions and 1 deletions
|
|
@ -445,7 +445,9 @@ def system_test_dir(request, env, 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(f"{env['TOP_BUILDDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}")
|
||||
system_test_root = Path(
|
||||
f"{env['TOP_BUILDDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}"
|
||||
).resolve()
|
||||
testdir = Path(
|
||||
tempfile.mkdtemp(prefix=f"{system_test_name}_tmp_", dir=system_test_root)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue