tests: Unset SOURCE_DATE_EPOCH
Some distributions set this during build in order to have reproducible builds from the same source code: for example, Debian uses the date from debian/changelog. However, some of our tests assume that `ostree commit` will result in a commit with the current date/time, and SOURCE_DATE_EPOCH breaks that assumption. Unset it for our build-time tests. Resolves: https://github.com/ostreedev/ostree/issues/2405 Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
1 parent
420952595b
commit
2c5fa2cdb6
2 files changed
+9
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user