From e4166f4e9970bbc7ea713d411219a5710c778d61 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Mon, 4 Mar 2019 08:43:42 +0100 Subject: [PATCH] LU-12039 tests: fix 'lfs mkdir' in sanity-selinux sanity-selinux test_2b and test_20c assume that directory created with 'lfs mkdir' will be on MDT0, but they have to use the '-i 0' flag to make sure. Test-Parameters: trivial testlist=sanity-selinux clientselinux Signed-off-by: Sebastien Buisson Change-Id: I57df7aed18673b9f7f1301b45e621bb76ebb9845 Reviewed-on: https://review.whamcloud.com/34368 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez --- lustre/tests/sanity-selinux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity-selinux.sh b/lustre/tests/sanity-selinux.sh index 66288ab..df3d512 100755 --- a/lustre/tests/sanity-selinux.sh +++ b/lustre/tests/sanity-selinux.sh @@ -137,7 +137,7 @@ test_2b() { mds_path=${mds_path#/} $LFS setdirstripe -i0 -c1 ${DIR}/$tdir || error "create dir failed" - $LFS mkdir -c0 $dirname1 || error "cannot 'lfs mkdir' $dirname1" + $LFS mkdir -c0 -i0 $dirname1 || error "cannot 'lfs mkdir' $dirname1" local xattrval=$(check_selinux_xattr "mds1" $mds_path) @@ -354,7 +354,7 @@ test_20c() { do_facet client "$LCTL set_param fail_val=$req_delay fail_loc=0x140b" # create file on first mount point - lfs mkdir -c0 $dirname1 & + $LFS mkdir -c0 -i0 $dirname1 & local mkdirpid=$! sleep 5 -- 1.8.3.1