From 3e233d5bb169aa56403b9b3385ec0668c7a37450 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Wed, 24 May 2023 15:40:15 +0200
Subject: [PATCH] Add check to use the jobs_failed_status.log file to see if
 everything finished properly or not.

---
 examples/01_real-from-ideal+psp.sh | 3 +++
 examples/01_real-from-ideal.sh     | 3 +++
 examples/02_real-from-dwd-ana.sh   | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/examples/01_real-from-ideal+psp.sh b/examples/01_real-from-ideal+psp.sh
index 8a74520..49e0d58 100755
--- a/examples/01_real-from-ideal+psp.sh
+++ b/examples/01_real-from-ideal+psp.sh
@@ -35,3 +35,6 @@ setup_autoicon_example "$ICON_CASE" "$ICON_VERSION" "${EXTRA_NAMELIST}"
 # Create and run experiment
 autosubmit create ${EXPID} -np
 autosubmit run ${EXPID}
+
+# Check that all jobs finished correctly
+[ ! -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
diff --git a/examples/01_real-from-ideal.sh b/examples/01_real-from-ideal.sh
index 1536ac9..4839ba7 100755
--- a/examples/01_real-from-ideal.sh
+++ b/examples/01_real-from-ideal.sh
@@ -24,3 +24,6 @@ setup_autoicon_example "$ICON_CASE" "$ICON_VERSION" "${EXTRA_NAMELIST}"
 # Create and run experiment
 autosubmit create ${EXPID} -np
 autosubmit run ${EXPID}
+
+# Check that all jobs finished correctly
+[ ! -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
diff --git a/examples/02_real-from-dwd-ana.sh b/examples/02_real-from-dwd-ana.sh
index 8cf3f48..fd5fbaf 100755
--- a/examples/02_real-from-dwd-ana.sh
+++ b/examples/02_real-from-dwd-ana.sh
@@ -24,3 +24,6 @@ setup_autoicon_example "$ICON_CASE" "$ICON_VERSION" "${EXTRA_NAMELIST}"
 # Create and run experiment
 autosubmit create ${EXPID} -np
 autosubmit run ${EXPID}
+
+# Check that all jobs finished correctly
+[ ! -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
-- 
GitLab