Skip to content
Snippets Groups Projects
Commit f3692785 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

robustness updates

Former-commit-id: dbc85ae6b73c5661e5179673e396ce15dcb40023
parent c5eab195
No related branches found
No related tags found
No related merge requests found
...@@ -281,9 +281,10 @@ check_options() ...@@ -281,9 +281,10 @@ check_options()
if [ "X$2" = "Xzipr" ]; then if [ "X$2" = "Xzipr" ]; then
echo "Using Zipr backend." echo "Using Zipr backend."
export backend="zipr" export backend="zipr"
phases_spec=" $phases_spec gather_libraries=off clone=off stratafy_with_pc_confine=off generate_spri=off spasm=off fast_annot=off zipr=on preLoaded_ILR1=off preLoaded_ILR2=off fast_spri=off create_binary_script=off is_so=off" phases_spec=" $phases_spec gather_libraries=off clone=off stratafy_with_pc_confine=off generate_spri=off spasm=off fast_annot=off preLoaded_ILR1=off preLoaded_ILR2=off fast_spri=off create_binary_script=off is_so=off"
phases_spec=${phases_spec/preLoaded_ILR1=on/} phases_spec=${phases_spec/preLoaded_ILR1=on/}
phases_spec=${phases_spec/preLoaded_ILR2=on/} phases_spec=${phases_spec/preLoaded_ILR2=on/}
post_phases_spec="$post_phases_spec zipr=on"
step_options_gather_libraries="$step_options_gather_libraries --main_exe_only" step_options_gather_libraries="$step_options_gather_libraries --main_exe_only"
elif [ "X$2" = "Xstrata" ]; then elif [ "X$2" = "Xstrata" ]; then
echo "Using Strata backend." echo "Using Strata backend."
...@@ -362,6 +363,8 @@ check_options() ...@@ -362,6 +363,8 @@ check_options()
esac esac
done done
phases_spec="$phases_spec $post_phases_spec "
# #
# Check/parse input/output file # Check/parse input/output file
# #
...@@ -445,7 +448,7 @@ is_step_error() ...@@ -445,7 +448,7 @@ is_step_error()
case $my_step in case $my_step in
*) *)
if [ $my_error -eq 0 ]; then if [[ $my_error -eq 0 ]]; then
# if not otherwise specified, programs should return 0 # if not otherwise specified, programs should return 0
return 0; return 0;
fi fi
...@@ -664,18 +667,18 @@ perform_step() ...@@ -664,18 +667,18 @@ perform_step()
echo "#ATTRIBUTE step_exitcode=$command_exit" >> $logfile echo "#ATTRIBUTE step_exitcode=$command_exit" >> $logfile
# report job status # report job status
if [ $command_exit -eq 0 ]; then if [[ $command_exit -eq 0 ]]; then
if [ $record_stats -eq 1 ]; then if [[ $record_stats -eq 1 ]]; then
$PEASOUP_HOME/tools/db/job_status_report.sh "$JOBID" "$step" "$stepnum" completed "$endtime" success $logfile $PEASOUP_HOME/tools/db/job_status_report.sh "$JOBID" "$step" "$stepnum" completed "$endtime" success $logfile
fi fi
else else
if [ $record_stats -eq 1 ]; then if [[ $record_stats -eq 1 ]]; then
$PEASOUP_HOME/tools/db/job_status_report.sh "$JOBID" "$step" "$stepnum" completed "$endtime" error $logfile $PEASOUP_HOME/tools/db/job_status_report.sh "$JOBID" "$step" "$stepnum" completed "$endtime" error $logfile
fi fi
fi fi
is_step_error $step $command_exit is_step_error $step $command_exit
if [ $? -ne 0 ]; then if [[ $? -ne 0 ]]; then
echo "Done. Command failed! ***************************************" echo "Done. Command failed! ***************************************"
# check if we need to exit # check if we need to exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment