From f827550bfd764c1f6bb48bcdcfd89c5f5e005960 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Mon, 26 Apr 2021 13:27:59 +0200 Subject: [PATCH] set random date for test --- planemo_ci_actions.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/planemo_ci_actions.sh b/planemo_ci_actions.sh index ecc683d..23dc95c 100755 --- a/planemo_ci_actions.sh +++ b/planemo_ci_actions.sh @@ -128,6 +128,13 @@ fi # - merge the test reports for the tool groups if [ "$MODE" == "test" ]; then + # set a random date. ofen tools put time stamps in output files + # for tools undergoing short reviews (<1d) these will produce + # problems with weekly checks that may be avoided by this + rand=$(echo "$RANDOM * $RANDOM * $RANDOM / 1000" | bc -l) + randdate=$(date -d "$rand" +%Y%m%d %H:%M) + sudo date -s "$randdate" + if [ "$WORKFLOWS" == "true" ] && [ "$SETUP_CVMFS" == "true" ]; then "$GITHUB_ACTION_PATH"/cvmfs/setup_cvmfs.sh fi