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 <sbuisson@ddn.com>
Change-Id: Ifeba7fc1eba86d74a64cca187e286adb23147e2e
Reviewed-on: https://review.whamcloud.com/35176
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
[ $dirperms == "drwxrwsrwt" ] ||
error "incorrect perms on $dir/testdir"
[ $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}')
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}')