From: James Simmons Date: Fri, 27 Jul 2018 23:59:32 +0000 (-0400) Subject: LU-10947 build: test if xfsprogs are installed X-Git-Tag: 2.11.54~26 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F32539%2F4;p=fs%2Flustre-release.git LU-10947 build: test if xfsprogs are installed We need xfsprogs because conf-sanity test_116 use mkfs.xfs. No need to install the xfsprogs for a single test so just skip the test if mkfs.xfs is not available. Set $tmpmnt to $TMP/$tdir since /mnt is read only for my diskless setup. The $TMP is not in my setup. Test-Parameters: trivial testlist=conf-sanity mdsdistro=sles12sp3 ossdistro=sles12sp3 Change-Id: I1db88afe7e382e1032ed7e2844a1dec1c032530e Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/32539 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: James Nunez --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 1756b16..c53ead1 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -8057,10 +8057,15 @@ test_116() { [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.10.59) ] && skip "Need server version at least 2.10.59" && return + do_facet $SINGLEMDS which mkfs.xfs || { + skip_env "No mkfs.xfs installed" + return + } + stopall load_modules - local tmpmnt=/mnt/$tdir + local tmpmnt=$TMP/$tdir local mdtimg=$tfile-mdt0 do_facet $SINGLEMDS mkdir -p $tmpmnt