From 1476ac047b449886a0c382b840a7b09dc0cec7eb Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Tue, 11 Jun 2019 11:50:01 +0200 Subject: [PATCH] LU-12399 tests: avoid 'pdsh localhost' in sanity test_420 sanity test_420 needs a clean env to execute openfile, ie not inherited from root user. Replace 'pdsh localhost' with simpler 'su - $uname -c' alternative to achieve this. Test-Parameters: trivial envdefinitions=ONLY=420 testlist=sanity Signed-off-by: Sebastien Buisson Change-Id: Ifeba7fc1eba86d74a64cca187e286adb23147e2e Reviewed-on: https://review.whamcloud.com/35176 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Wang Shilong Reviewed-by: Andreas Dilger Reviewed-by: James Simmons --- lustre/tests/sanity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index e21d948..579899f 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -20317,7 +20317,7 @@ test_420() [ $dirperms == "drwxrwsrwt" ] || error "incorrect perms on $dir/testdir" - $PDSH ${uname}@localhost "PATH=$LUSTRE/tests:\$PATH; \ + su - $uname -c "PATH=$LUSTRE/tests:\$PATH; \ openfile -f O_RDONLY:O_CREAT -m 02755 $dir/testdir/testfile" ls -n $dir/testdir/testfile local fileperms=$(ls -n $dir/testdir/testfile | awk '{print $1}') -- 1.8.3.1