From b8e1aa71725ba404a33df45bff87896f2a9a339f Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 6 Jul 2023 19:31:18 +0200 Subject: [PATCH] tests: Fix composefs test This was using the wrong metadata key and had an old digest. --- tests/test-composefs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-composefs.sh b/tests/test-composefs.sh index 9a14e545b8..72ea041e08 100755 --- a/tests/test-composefs.sh +++ b/tests/test-composefs.sh @@ -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"