forked from AdaCore/e3-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the SLSA build metadata from JSON
A SLSA predicate object contains run details, which itself contains some build metadata (start and end times). A `BuildMetadata` class is thus initialized with two timestamps. Those timestamps are check and transformed to UTC timezone timestamps. Unfortunately the timezone transformation was erasing the timestamp itself. By using `datetime.astimezone()` method (and not `datetime.utcnow()` anymore), the test failure is fixed. To make sure this does not happen anymore, a time sleep has been added in some tests. Fixes AdaCore#668
- Loading branch information
1 parent
6aec614
commit 0e7d6f0
Showing
2 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters