debian-forge/test
Lukas Zapletal 5088c0ee69 monitor: fix duration calculation
When fully cached manifest is used, the duration used to print an
incorrect value of 55 years:

    python3 -m osbuild --libdir . ./test/data/manifests/fedora-boot.json
    ⏱  Duration: 1753191578s

This patch fixes the duration calculation to use the correct timestamp
from the manifest by using monotonic timer instead. Additionally, it
prints nothing when there was no module executed. Finally, it improves
the formatting of the duration output.
2025-08-22 09:26:50 +02:00
..
cases test: simplify git clone command 2025-06-02 16:00:25 +02:00
data test/data: update test manifests 2025-07-31 00:53:54 +02:00
mod monitor: fix duration calculation 2025-08-22 09:26:50 +02:00
run stages/test: add dnf4.versionlock file format check 2025-07-07 17:19:25 +02:00
stages test: add test for export option 2024-01-10 11:24:01 +01:00
.gitignore introduce testing script 2019-07-09 10:29:48 +02:00
__init__.py osbuild: add description() methods 2019-08-07 10:01:17 +02:00
conftest.py Mark tests needing TOML-writing library with a custom marker 2025-06-23 19:51:29 +02:00
initrd.py autopep8: Update with changes to make autopep8 -a -a -a happy 2023-08-10 13:04:14 +02:00
test.py sbom/spdx: use compliant license expressions 2025-02-27 13:31:19 +01:00