From 6246dadc87131158d760a8b5149f1b4d7fdfa066 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Tue, 31 Dec 2024 09:10:16 +0300 Subject: [PATCH] LU-18605 tests: give time to start in sanityn/31s give tail command some time to start otherwise it can race with mv command few lines ago and if mv wins then the test fail with: sanityn.sh: line 1218: cd: /mnt/lustre/d31s.sanityn: No such file tail: cannot open 'f31s.sanityn' for reading: No such file tail: no files remaining sanityn test_31s: @@@@@@ FAIL: fail to stop 21777 Test-Parameters: trivial Fixes: 32582842ca ("LU-17583 llite: getattr/open should not revalidate dentry") Signed-off-by: Alex Zhuravlev Change-Id: Ibff49cf12bebc4799eb0eefe2a4e45bfa459f660 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57606 Reviewed-by: Jian Yu Reviewed-by: Etienne AUJAMES Reviewed-by: Oleg Drokin Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo --- lustre/tests/sanityn.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 7315971..1453967 100755 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -1216,6 +1216,7 @@ test_31s() { mkdir_on_mdt0 $DIR/$tdir touch $DIR/$tdir/$tfile || error "touch $tdir/$tfile failed" ( cd $DIR/$tdir; tail -f $tfile || $MULTIOP . Dc) & pid=$! + sleep 0.5 stack_trap "pkill -P $pid 2> /dev/null" ERR -- 1.8.3.1