Whamcloud - gitweb
LU-16916 tests: fix client_evicted() not to ignore EOPNOTSUPP
authorJian Yu <yujian@whamcloud.com>
Sat, 15 Jul 2023 14:36:13 +0000 (22:36 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 23 Jul 2023 01:19:27 +0000 (01:19 +0000)
commitc788da576e2414920727384e44fdfe1aa3ef86ea
treea82b3d3ba86783cda9b44aa4699eaf7421dab754
parent46c9c7747d1e5c4d69da3974c25f018c15049420
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.

Lustre-change: https://review.whamcloud.com/51667
Lustre-commit: a5a9ded43b72238c2df8e0a74f03151ea3d4ce99

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/ex/lustre-release/+/51691
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/test-framework.sh