Whamcloud - gitweb
b=22215 mpi_run (): p4_error fix
authorElena Gryaznova <grev@sun.com>
Wed, 26 May 2010 11:03:21 +0000 (15:03 +0400)
committerRobert Read <robert.read@oracle.com>
Wed, 26 May 2010 15:54:01 +0000 (08:54 -0700)
i=Brian.Murrell

fail if mpirun output contains p4_error, independently from error message and value

lustre/tests/functions.sh

index 859802b..4d9ea51 100644 (file)
@@ -185,7 +185,7 @@ mpi_run () {
     eval $command 2>&1 | tee $mpilog || true
 
     rc=${PIPESTATUS[0]}
-    if [ $rc -eq 0 ] && grep -q "p4_error: : [^0]" $mpilog ; then
+    if [ $rc -eq 0 ] && grep -q "p4_error:" $mpilog ; then
        rc=1
     fi
     return $rc