From: Alex Zhuravlev Date: Wed, 14 Apr 2021 05:13:25 +0000 (+0300) Subject: LU-14613 tests: fix sanity/60f on a local setup X-Git-Tag: 2.14.52~124 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a2b5290d42846e9d053034d1d78966b91359cd65;p=fs%2Flustre-release.git LU-14613 tests: fix sanity/60f on a local setup as fail_loc is shared among client and server on a local setup, it can hit just before rm -f $TMP/$tfile*. given it's marked with FAIL_ONCE, the log won't be dumped again. to fix this do cleanup rm earlier. Test-Parameters: trivial Signed-off-by: Alex Zhuravlev Change-Id: Ifd70335c44bfe2e1970e1441837dcb3545c40ab0 Reviewed-on: https://review.whamcloud.com/43308 Tested-by: jenkins Reviewed-by: Bobi Jam Reviewed-by: Andreas Dilger Tested-by: Maloo --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index df4b8c8..8a58ac8 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -8054,10 +8054,10 @@ test_60f() { stack_trap "$LCTL set_param debug_path=$old_path" stack_trap "rm -f $TMP/$tfile*" + rm -f $TMP/$tfile* 2> /dev/null #define OBD_FAIL_PTLRPC_DUMP_LOG 0x50e $LCTL set_param debug_path=$TMP/$tfile fail_loc=0x8000050e test_mkdir $DIR/$tdir - rm -f $TMP/$tfile* 2> /dev/null # retry in case the open is cached and not released for (( i = 0; i < 100 && $(ls $TMP/$tfile* | wc -l) == 0; i++ )); do echo $i > $DIR/$tdir/$tfile.$i && cat $DIR/$tdir/$tfile.$i