Skip to content

Commit a94860a

Browse files
authored
ZTS: Fix 'could not unmount datasets' on Alma 9 (#15542)
Many tests are failing on AlmaLinux 9 because ZTS could not destroy the pool in cleanup. This was due to $PWD being set to '.' instead of the expected full path. This patch sets $PWD to the full path. Signed-off-by: Tony Hutter <[email protected]> Reviewed-by: Don Brady <[email protected]>
1 parent cd67bc0 commit a94860a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/zfs-tests/include/libtest.shlib

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
. ${STF_SUITE}/include/math.shlib
3838
. ${STF_SUITE}/include/blkdev.shlib
3939

40+
# On AlmaLinux 9 we will see $PWD = '.' instead of the full path. This causes
41+
# some tests to fail. Fix it up here.
42+
if [ "$PWD" = "." ] ; then
43+
PWD="$(readlink -f $PWD)"
44+
fi
45+
4046
#
4147
# Apply constrained path when available. This is required since the
4248
# PATH may have been modified by sudo's secure_path behavior.

0 commit comments

Comments
 (0)