From cc6e8deabdbd7e5ffe1301f8889a5fadf15a405d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Riette?= <sebastien.riette@meteo.fr> Date: Thu, 14 Dec 2023 14:09:09 +0100 Subject: [PATCH] S. Riette 14 Dec 2023: new ref version for testprogs Change reference version for NEC Use of sendmail for aurora01 --- src/testprogs/testprogs_version.json | 10 +++++----- tools/testing.sh | 9 ++++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/testprogs/testprogs_version.json b/src/testprogs/testprogs_version.json index 48887148b..3426d687a 100644 --- a/src/testprogs/testprogs_version.json +++ b/src/testprogs/testprogs_version.json @@ -1,9 +1,9 @@ { "testing": { - "ice_adjust":"19ee594", - "rain_ice":"19ee594", - "rain_ice_old":"8046717", - "turb":"19ee594", - "shallow":"19ee594" + "ice_adjust":"25bf25f", + "rain_ice":"25bf25f", + "rain_ice_old":"25bf25f", + "turb":"25bf25f", + "shallow":"25bf25f" } } diff --git a/tools/testing.sh b/tools/testing.sh index 035e8bb74..c49e1f5c3 100755 --- a/tools/testing.sh +++ b/tools/testing.sh @@ -177,9 +177,16 @@ function get_cases { function send_mail { message="$1" if [ "$MAIL" != "" ]; then - mail -s "$context" "$MAIL" <<EOF + if command -v mail; then + mail -s "$context" "$MAIL" <<EOF $(echo -e ${message}) EOF + else + sendmail "$MAIL" <<EOF +Subject: $context +$(echo -e ${message}) +EOF + fi fi } -- GitLab