]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
RelVal: return exitcode of Makeflow to the caller
authordberzano <dario.berzano@cern.ch>
Wed, 6 Aug 2014 13:53:58 +0000 (13:53 +0000)
committerdberzano <dario.berzano@cern.ch>
Wed, 6 Aug 2014 13:53:58 +0000 (13:53 +0000)
PWGPP/benchmark/benchmark.sh

index 8a374093c9e0c6125ca2352915d9e0f9c8e86af9..971450026ca0560cf5d2258c03377d8717e0b233 100755 (executable)
@@ -44,7 +44,7 @@ main()
       ${runMode} "$@"
     ;;
   esac
-  return 0
+  return $?
 }
 
 generateMC()
@@ -1034,8 +1034,10 @@ goSubmitMakeflow()
     goGenerateMakeflow ${productionID} ${inputFileList} ${configFile} "${extraOpts[@]}" commonOutputPath=${commonOutputPath} > benchmark.makeflow
     cp benchmark.makeflow ${commonOutputPath}
     makeflow ${makeflowOptions} benchmark.makeflow
+    makeflow_exitcode=$?
   else 
     echo "no makeflow!"
+    return 1
   fi
   
   #summarize the run based on the makeflow log
@@ -1046,7 +1048,7 @@ goSubmitMakeflow()
       benchmark.makeflow.makeflowlog | tee -a summary.log
   paranoidCp summary.log ${commonOutputPath}
 
-  return 0
+  return $makeflow_exitcode
 }
 
 goGenerateMakeflow()