From: Alex Zhuravlev Date: Sun, 30 May 2021 15:36:39 +0000 (+0300) Subject: LU-14725 tests: sanity/27Q to remove own symlink in /tmp X-Git-Tag: 2.14.52~2 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=c4be7bab2f06e0db045f940c51a1ecd632ad4fe8;ds=sidebyside LU-14725 tests: sanity/27Q to remove own symlink in /tmp otherwise any subsequent restart of MDS/MGS on a local setup with ZFS backend gets stuck as zpool import scans /tmp and stat's every found file. Test-Parameters: trivial Fixes: cd4caef54f ("LU-14583 llapi: handle symlinks in llapi_file_get_stripe()") Signed-off-by: Alex Zhuravlev Change-Id: I2eb4cb8819670acef0302e1fe5ab767be7f46842 Reviewed-on: https://review.whamcloud.com/43875 Tested-by: jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 625bc80..cfe0193 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -3321,6 +3321,7 @@ run_test 27P "basic ops on foreign dir of foreign_symlink type" test_27Q() { rm -f $TMP/$tfile $TMP/$tfile.loop $TMP/$tfile.none $TMP/$tfile.broken + stack_trap "rm -f $TMP/$tfile*" test_mkdir $DIR/$tdir-1 test_mkdir $DIR/$tdir-2