[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] happy new year, set real_year=2022 to be able to detect real and fake dates
Holger Levsen (@holger)
gitlab at salsa.debian.org
Sat Jan 1 11:50:37 GMT 2022
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
17746273 by Holger Levsen at 2022-01-01T12:50:29+01:00
happy new year, set real_year=2022 to be able to detect real and fake dates
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-2021 Holger Levsen <holger at layer-acht.org>
+# Copyright 2014-2022 Holger Levsen <holger at layer-acht.org>
# © 2015-2018 Mattia Rizzolo <mattia at mapreri.org>
# released under the GPLv2
@@ -95,7 +95,7 @@ fi
# (XXX: yes this is hardcoded but meh…)
echo "$(date -u) - testing whether the time is right..."
get_node_information "$HOSTNAME"
-real_year=2021
+real_year=2022
year=$(date +%Y)
if "$NODE_RUN_IN_THE_FUTURE"; then
if [ "$year" -eq "$real_year" ]; then
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/17746273fdb0ea5808f27e472cbf0f725a3daa2c
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/17746273fdb0ea5808f27e472cbf0f725a3daa2c
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/20220101/d34b48a7/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list