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>
> $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"
> $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"