Skip to content

Commit

Permalink
Merge pull request #2407 from smcv/tests-source-date-epoch
Browse files Browse the repository at this point in the history
tests: Unset SOURCE_DATE_EPOCH
  • Loading branch information
lucab committed Jul 26, 2021
2 parents 4209525 + 2c5fa2c commit 835b114
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/gh-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ ${make}

# Run the tests both using check and distcheck.
${make} check

# Some tests historically failed when package builds set this.
# By setting it for distcheck but not check, we exercise both ways.
export SOURCE_DATE_EPOCH=$(date '+%s')

${make} distcheck DISTCHECK_CONFIGURE_FLAGS="$*"

# Show the installed files
Expand Down
4 changes: 4 additions & 0 deletions tests/libtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ if ! test -f .testtmp; then
touch .testtmp
fi

# Some distribution builds set this, but some of our build-time tests
# assume this won't be used when committing
unset SOURCE_DATE_EPOCH

# Also, unbreak `tar` inside `make check`...Automake will inject
# TAR_OPTIONS: --owner=0 --group=0 --numeric-owner presumably so that
# tarballs are predictable, except we don't want this in our tests.
Expand Down

0 comments on commit 835b114

Please sign in to comment.