Whamcloud - gitweb
LU-19064 tests: sanity/851 to use correct host 54/59454/3
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 27 May 2025 08:28:15 +0000 (11:28 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Jun 2025 06:37:58 +0000 (06:37 +0000)
sanity/851 should use correct hostname to run well on a local setup.

Test-Parameters: trivial env=ONLY=851,ONLY_REPEAT=10 testlist=sanity
Test-Parameters: trivial env=ONLY=851,ONLY_REPEAT=10 testlist=sanity
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Id8c62cc8fa7c5e57cef70e549652d30db94a0740
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59454
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Feng Lei <flei@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity.sh

index 1dbcf4c..40cd85c 100755 (executable)
@@ -34889,7 +34889,7 @@ test_851() {
        > $report
 
        echo "1234567890" > $file
-       wait_update_cond localhost "stat -c %s $report" "-gt" "0" 30 ||
+       wait_update_cond $(facet_active_host client) "stat -c %s $report" "-gt" "0" 30 ||
                error "fanotify did not report anything after 30 seconds when file is created"
        grep -a -E "open.*:$file:" $report ||
                error "no open event for writing $file"
@@ -34900,7 +34900,7 @@ test_851() {
 
        > $report
        cat $file
-       wait_update_cond localhost "stat -c %s $report" "-gt" "0" 30 ||
+       wait_update_cond $(facet_active_host client) "stat -c %s $report" "-gt" "0" 30 ||
                error "fanotify did not report anything after 30 seconds when file is read"
        grep -a -E "open.*:$file:" $report ||
                error "no open event for reading $file"