In Lustre test suites, there are some subtests using filefrag
from Lustre-patched e2fsprogs. This patch adds checks in those
subtests to skip them if the Lustre-patched e2fsprogs is not
installed on Lustre client.
Test-Parameters: trivial
Test-Parameters: env=ONLY="228" clientdistro=ubuntu2204 testlist=sanity-hsm
Test-Parameters: env=ONLY="24a" clientdistro=ubuntu2204 testlist=sanity-pfl
Test-Parameters: env=ONLY="56" clientdistro=ubuntu2204 testlist=sanity-sec
Test-Parameters: env=ONLY="77n 130" clientdistro=ubuntu2204 testlist=sanity
Change-Id: I86e2edd18052ff7fb19e7cbcbb660aa383824372
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56899
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
run_test 227 "changelog when explicit setting of HSM flags"
test_228() {
+ local filefrag_op=$(filefrag -l 2>&1 | grep "invalid option")
+ [[ -z "$filefrag_op" ]] || skip_env "filefrag missing logical ordering"
+
# test needs a running copytool
copytool setup
mkdir_on_mdt0 $DIR/$tdir
}
test_24a() {
+ local filefrag_op=$(filefrag -l 2>&1 | grep "invalid option")
+ [[ -z "$filefrag_op" ]] || skip_env "filefrag missing logical ordering"
[ "$OSTCOUNT" -lt "3" ] && skip_env "needs >= 3 OSTs"
trap cleanup_24 EXIT RETURN
run_test 55 "access with seteuid"
test_56() {
+ local filefrag_op=$(filefrag -l 2>&1 | grep "invalid option")
+ [[ -z "$filefrag_op" ]] || skip_env "filefrag missing logical ordering"
+
local testfile=$DIR/$tdir/$tfile
[[ $(facet_fstype ost1) == zfs ]] && skip "skip ZFS backend"
}
test_77n() {
+ local filefrag_op=$(filefrag -l 2>&1 | grep "invalid option")
+ [[ -z "$filefrag_op" ]] || skip_env "filefrag missing logical ordering"
[[ "$CKSUM_TYPES" =~ t10 ]] || skip "no T10 checksum support on osc"
touch $DIR/$tfile
}
test_130a() {
- local filefrag_op=$(filefrag -e 2>&1 | grep "invalid option")
- [[ -z "$filefrag_op" ]] || skip_env "filefrag does not support FIEMAP"
+ local filefrag_op=$(filefrag -l 2>&1 | grep "invalid option")
+ [[ -z "$filefrag_op" ]] || skip_env "filefrag missing logical ordering"
trap cleanup_130 EXIT RETURN