diff --git a/nemo_run/core/execution/templates/slurm.sh.j2 b/nemo_run/core/execution/templates/slurm.sh.j2 index c47261fb..26f756fa 100644 --- a/nemo_run/core/execution/templates/slurm.sh.j2 +++ b/nemo_run/core/execution/templates/slurm.sh.j2 @@ -73,7 +73,7 @@ while ! $all_done; do # Process is no longer running => check its exit status. wait "$pid" exitcode=$? - echo "Process $pid exited with code $exit_code at $(date '+%Y-%m-%d %H:%M:%S')" + echo "Process $pid exited with code $exitcode at $(date '+%Y-%m-%d %H:%M:%S')" # Wait a bit (to get a clean stack trace in case there is one being generated), then kill the # remaining processes if needed. sleep {{monitor_group_job_wait_time}} diff --git a/test/core/execution/artifacts/ft_het_slurm.sh b/test/core/execution/artifacts/ft_het_slurm.sh index 176dd0db..a0a51456 100644 --- a/test/core/execution/artifacts/ft_het_slurm.sh +++ b/test/core/execution/artifacts/ft_het_slurm.sh @@ -105,7 +105,7 @@ while ! $all_done; do # Process is no longer running => check its exit status. wait "$pid" exitcode=$? - echo "Process $pid exited with code $exit_code at $(date '+%Y-%m-%d %H:%M:%S')" + echo "Process $pid exited with code $exitcode at $(date '+%Y-%m-%d %H:%M:%S')" # Wait a bit (to get a clean stack trace in case there is one being generated), then kill the # remaining processes if needed. sleep 60 diff --git a/test/core/execution/artifacts/group_resource_req_slurm.sh b/test/core/execution/artifacts/group_resource_req_slurm.sh index a68b77d9..fcfe416f 100644 --- a/test/core/execution/artifacts/group_resource_req_slurm.sh +++ b/test/core/execution/artifacts/group_resource_req_slurm.sh @@ -65,7 +65,7 @@ while ! $all_done; do # Process is no longer running => check its exit status. wait "$pid" exitcode=$? - echo "Process $pid exited with code $exit_code at $(date '+%Y-%m-%d %H:%M:%S')" + echo "Process $pid exited with code $exitcode at $(date '+%Y-%m-%d %H:%M:%S')" # Wait a bit (to get a clean stack trace in case there is one being generated), then kill the # remaining processes if needed. sleep 60 diff --git a/test/core/execution/artifacts/group_slurm.sh b/test/core/execution/artifacts/group_slurm.sh index 00833abc..f26a2fba 100644 --- a/test/core/execution/artifacts/group_slurm.sh +++ b/test/core/execution/artifacts/group_slurm.sh @@ -58,7 +58,7 @@ while ! $all_done; do # Process is no longer running => check its exit status. wait "$pid" exitcode=$? - echo "Process $pid exited with code $exit_code at $(date '+%Y-%m-%d %H:%M:%S')" + echo "Process $pid exited with code $exitcode at $(date '+%Y-%m-%d %H:%M:%S')" # Wait a bit (to get a clean stack trace in case there is one being generated), then kill the # remaining processes if needed. sleep 60 diff --git a/test/core/execution/artifacts/het_slurm.sh b/test/core/execution/artifacts/het_slurm.sh index 9be58607..0529f35f 100644 --- a/test/core/execution/artifacts/het_slurm.sh +++ b/test/core/execution/artifacts/het_slurm.sh @@ -80,7 +80,7 @@ while ! $all_done; do # Process is no longer running => check its exit status. wait "$pid" exitcode=$? - echo "Process $pid exited with code $exit_code at $(date '+%Y-%m-%d %H:%M:%S')" + echo "Process $pid exited with code $exitcode at $(date '+%Y-%m-%d %H:%M:%S')" # Wait a bit (to get a clean stack trace in case there is one being generated), then kill the # remaining processes if needed. sleep 60