Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SOURCE_DATE_EPOCH in metadata check tests #114

Merged
merged 1 commit into from
Nov 16, 2019

Conversation

fhunleth
Copy link
Collaborator

This fixes an issue that was introduce when fwup started preferring
SOURCE_DATE_EPOCH over NOW for making deterministic archives. Metadata
tests had used NOW, but that was ignored on build systems that were
actually using SOURCE_DATE_EPOCH.

The fix is to temporarily override SOURCE_DATE_EPOCH so that the unit
tests work. This verifies that SOURCE_DATE_EPOCH works. Additionally,
009_metadata_cmdline.test has an additional test now that verifies that
the old NOW variable continues to work.

Fixes #113.

This fixes an issue that was introduce when fwup started preferring
SOURCE_DATE_EPOCH over NOW for making deterministic archives. Metadata
tests had used NOW, but that was ignored on build systems that were
actually using SOURCE_DATE_EPOCH.

The fix is to temporarily override SOURCE_DATE_EPOCH so that the unit
tests work. This verifies that SOURCE_DATE_EPOCH works. Additionally,
009_metadata_cmdline.test has an additional test now that verifies that
the old NOW variable continues to work.

Fixes #113.
@fhunleth fhunleth mentioned this pull request Nov 16, 2019
@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.129% when pulling e7dff01 on use-source-date-epoch-in-tests into 2de5819 on master.

@fhunleth fhunleth merged commit e7dff01 into master Nov 16, 2019
@fhunleth fhunleth deleted the use-source-date-epoch-in-tests branch November 16, 2019 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

metadata tests failing
2 participants