static-delta: Change show to display from/to commits
When writing a delta to a file this may not always be recorded in the filename, and it's useful data. Ref: https://mail.gnome.org/archives/ostree-list/2019-February/msg00000.html This also required teaching `show` to accept a file path. Note...for some reason `test-deltas.sh` breaks when run from a tty - we get `SIGTTIN` which implies something is reading from the tty but it wasn't obvious to me what. Closes: #1823 Approved by: jlebon
This commit is contained in:
1 parent
978cffed70
commit
8d2e9b8f9e
2 files changed
+42
-10
No files matched your search
@@ -135,6 +135,8 @@ rm temp-repo -rf
|
||||
echo 'ok generate'
|
||||
|
||||
${CMD_PREFIX} ostree --repo=repo static-delta show ${origrev}-${newrev} > show.txt
|
||||
assert_file_has_content show.txt "From: ${origrev}"
|
||||
assert_file_has_content show.txt "To: ${newrev}"
|
||||
assert_file_has_content show.txt 'Endianness: \(little\|big\)'
|
||||
|
||||
echo 'ok show'
|
||||
|
||||
Reference in new issue
Block a user