Skip to content

Commit

Permalink
tests: Fix composefs test
Browse files Browse the repository at this point in the history
This was using the wrong metadata key and had an old digest.
  • Loading branch information
alexlarsson committed Jul 6, 2023
1 parent 4fb976c commit b8e1aa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-composefs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ setup_test_repository "bare-user"
cd ${test_tmpdir}
$OSTREE checkout test2 test2-co
$OSTREE commit ${COMMIT_ARGS} -b test-composefs --generate-composefs-metadata test2-co
orig_composefs_digest=$($OSTREE show --print-metadata-key ostree.composefs.v0 test-composefs)
assert_streq "${orig_composefs_digest}" '[byte 0x1f, 0x08, 0xe5, 0x8b, 0x14, 0x3b, 0x75, 0x34, 0x76, 0xb5, 0xef, 0x0c, 0x0c, 0x6e, 0xce, 0xbf, 0xde, 0xbb, 0x6d, 0x40, 0x30, 0x5e, 0x35, 0xbd, 0x6f, 0x8e, 0xc1, 0x9c, 0xd0, 0xd1, 0x5b, 0xae]'
orig_composefs_digest=$($OSTREE show --print-metadata-key ostree.composefs.digest.v0 test-composefs)
assert_streq "${orig_composefs_digest}" '[byte 0xb5, 0x58, 0x59, 0x7d, 0xe6, 0xa3, 0xcf, 0xec, 0xa4, 0xe5, 0x9f, 0x2d, 0x40, 0xf1, 0x71, 0x7a, 0xfe, 0x58, 0xac, 0x67, 0x10, 0x6d, 0x05, 0xd3, 0x96, 0xcc, 0xf2, 0x62, 0x6a, 0x3d, 0xd1, 0xf0]'
$OSTREE commit ${COMMIT_ARGS} -b test-composefs2 --generate-composefs-metadata test2-co
new_composefs_digest=$($OSTREE show --print-metadata-key ostree.composefs.v0 test-composefs)
new_composefs_digest=$($OSTREE show --print-metadata-key ostree.composefs.digest.v0 test-composefs2)
assert_streq "${orig_composefs_digest}" "${new_composefs_digest}"
tap_ok "composefs metadata"

Expand Down

0 comments on commit b8e1aa7

Please sign in to comment.