From ae6f7494175c1319a827c9497c573126a823d661 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. Lustre-change: https://review.whamcloud.com/34368 Lustre-commit: e4166f4e9970bbc7ea713d411219a5710c778d61 Test-Parameters: trivial testlist=sanity-selinux clientselinux Signed-off-by: Sebastien Buisson Change-Id: I4c27a93dd8f411cff154c50bb324574179f1a8c8 Reviewed-on: https://review.whamcloud.com/34373 Reviewed-by: Andreas Dilger Reviewed-by: James Nunez Reviewed-by: Wei Liu Tested-by: Jenkins Tested-by: Maloo --- 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