From 6cf05d011741791ca7dd6290b302b07f5048c45b 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..ab4c183 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=$(-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