Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not fail when the MPI program fails and KEEP is not defined
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 20 Oct 2017 11:24:05 +0000 (13:24 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 20 Oct 2017 11:24:10 +0000 (13:24 +0200)
Patch provided by S. Thibault, thanks.
(fix #232)

src/smpi/smpirun.in

index 3229f71..46e5b29 100755 (executable)
@@ -521,7 +521,7 @@ pid=""
 # Keep temporary files on failures to help debugging
 #
 if [ ${status} -ne 0 ] ; then
-    if [ -z ${KEEP} ]; then
+    if [ -z "${KEEP}" ]; then
         echo ${EXEC} ${PRIVATIZE} ${TRACEOPTIONS} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP}
         if [ ${HOSTFILETMP} = 1 ] ; then
             echo "Generated hostfile ${HOSTFILE} kept."