Skip to content

Commit

Permalink
set random date for test
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Apr 26, 2021
1 parent 8f0ae35 commit 6cf05d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions planemo_ci_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cf05d0

Please sign in to comment.