Whamcloud - gitweb
LU-16916 tests: fix client_evicted() not to ignore EOPNOTSUPP 67/51667/3
authorJian Yu <yujian@whamcloud.com>
Fri, 14 Jul 2023 03:31:21 +0000 (11:31 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Jul 2023 16:46:30 +0000 (16:46 +0000)
commita5a9ded43b72238c2df8e0a74f03151ea3d4ce99
tree7e88bc71ce678514d1b65bef1c198c39fa0f3e5a
parent0b705a916f3349650553a179954bebaf1bf4b86a
LU-16916 tests: fix client_evicted() not to ignore EOPNOTSUPP

After RHEL 9.x or Ubuntu 22.04 client is evicted, "lfs df" returns
error code 95 (EOPNOTSUPP), which is ignored in check_lfs_df_ret_val()
and then causes client_evicted() to ingore that error.

This patch fixes client_evicted() to check the return value
from "lfs df" directly so as not to ignore EOPNOTSUPP.

Test-Parameters: trivial clientdistro=el9.2 testlist=replay-vbr
Test-Parameters: trivial clientdistro=el8.8 testlist=replay-vbr
Test-Parameters: trivial clientdistro=ubuntu2204 testlist=replay-vbr

Change-Id: I633ae8769fc563b8068f433e2afae29463ac5553
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51667
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/test-framework.sh