Whamcloud - gitweb
b=23049 various t-f.sh patches
[fs/lustre-release.git] / lustre / tests / functions.sh
index 0953391..63d3868 100644 (file)
@@ -31,7 +31,7 @@ mpi_run () {
     local rc
     $LFS df -i
 
-    if [ "$MPI_USER" != root -a $mpirun ]; then
+    if [ -n "$MPI_USER" -a "$MPI_USER" != root -a -n "$mpirun" ]; then
         echo "+ chmod 0777 $MOUNT"
         chmod 0777 $MOUNT
         command="su $MPI_USER sh -c \"$command \""