diff options
author | Philip Withnall <withnall@endlessm.com> | 2017-06-07 12:03:57 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-06-07 16:55:35 +0000 |
commit | 7ce6777028953457c1f4125c48e6dc99a37949fc (patch) | |
tree | 9a554e88abd2e62f2bdf94f4908dbfcb76a8ab86 /tests/test-summary-view.sh | |
parent | 87413ee63b1612ee4d870e2e19b2b58643201641 (diff) | |
download | ostree-7ce6777028953457c1f4125c48e6dc99a37949fc.tar.gz |
ostree/dump: Improve formatting for well-known commit metadata keys
This follows on from commit a946c3d4, which added formatting for
well-known summary metadata keys. This commit adds it for commits.
Currently, the only well-known commit metadata key is
ostree.commit.timestamp. Formatting this correctly is especially
important, since it’s a big-endian uint64, which is completely unusable
for mere mortals when presented as a number rather than a date.
Non-formatted output can still be retrieved using the OSTREE_DUMP_RAW
flag, and the non-formatted key name is always printed for clarity.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #911
Approved by: cgwalters
Diffstat (limited to 'tests/test-summary-view.sh')
-rwxr-xr-x | tests/test-summary-view.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-summary-view.sh b/tests/test-summary-view.sh index 6dcfd088..5b52b691 100755 --- a/tests/test-summary-view.sh +++ b/tests/test-summary-view.sh @@ -52,6 +52,7 @@ assert_file_has_content_literal summary.txt "* main" assert_file_has_content_literal summary.txt "* other" assert_file_has_content_literal summary.txt "ostree.summary.last-modified" assert_file_has_content_literal summary.txt "Static Deltas (ostree.static-deltas): {}" +assert_file_has_content_literal summary.txt "Timestamp (ostree.commit.timestamp): " echo "ok view summary" # Check the summary can be viewed raw too. |