Whamcloud - gitweb
LU-18605 tests: give time to start in sanityn/31s 06/57606/3
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 31 Dec 2024 06:10:16 +0000 (09:10 +0300)
committerOleg Drokin <green@whamcloud.com>
Sun, 2 Feb 2025 06:29:06 +0000 (06:29 +0000)
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 <bzzz@whamcloud.com>
Change-Id: Ibff49cf12bebc4799eb0eefe2a4e45bfa459f660
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57606
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanityn.sh

index 7315971..1453967 100755 (executable)
@@ -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