[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] Reproducible: node health check: improve wordings in output
Holger Levsen
gitlab at salsa.debian.org
Fri Mar 13 12:01:25 GMT 2020
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
144cd64b by Holger Levsen at 2020-03-13T13:00:43+01:00
Reproducible: node health check: improve wordings in output
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_node_health_check.sh
Changes:
=====================================
bin/reproducible_node_health_check.sh
=====================================
@@ -1,7 +1,7 @@
#!/bin/bash
# vim: set noexpandtab:
-# Copyright 2014-2019 Holger Levsen <holger at layer-acht.org>
+# Copyright 2014-2020 Holger Levsen <holger at layer-acht.org>
# © 2015-2018 Mattia Rizzolo <mattia at mapreri.org>
# released under the GPLv2
@@ -37,7 +37,7 @@ show_fstab_and_mounts() {
}
#
-# we fail hard
+# fail hard
#
set -e
@@ -99,7 +99,7 @@ real_year=2020
year=$(date +%Y)
if "$NODE_RUN_IN_THE_FUTURE"; then
if [ "$year" -eq "$real_year" ]; then
- echo "Warning, today we came back to the present: $(date -u)."
+ echo "Warning, today $HOSTNAME came back to the present: $(date -u)."
DIRTY=true
elif [ "$year" -eq "$((real_year + 1))" ] || \
[ "$year" -eq "$((real_year + 2))" -a "$(date +%m)" -eq 1 ]; then
@@ -110,7 +110,7 @@ if "$NODE_RUN_IN_THE_FUTURE"; then
fi
else
if [ "$year" -eq "$real_year" ]; then
- echo "This host is running in the present as it should: $(date -u)."
+ echo "Host is running in the present as it should: $(date -u)."
else
echo "Warning, today is the wrong present: $(date -u)."
DIRTY=true
@@ -133,9 +133,9 @@ if [ "$(lsb_release -si)" = "Ubuntu" ] ; then
fi
#
-# check if we are running the latest kernel
+# check if the latest kernel is running
#
-echo "$(date -u) - testing whether we are running the latest kernel..."
+echo "$(date -u) - testing whether the latest kernel is running..."
if ! dsa-check-running-kernel ; then
echo "Warning: running kernel needs attention!" # string checked with logparse
DIRTY=true
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/144cd64b600c1c5b7e7d50cc4361b0d6d77f617d
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/144cd64b600c1c5b7e7d50cc4361b0d6d77f617d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200313/eb27a614/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list