Skip to content

Commit

Permalink
test-units: Fix fsverity invocation
Browse files Browse the repository at this point in the history
The hash algorithm is "sha256", not "256".

Signed-off-by: Alexander Larsson <[email protected]>
  • Loading branch information
alexlarsson committed Aug 28, 2024
1 parent a3f298c commit 5f2be1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-units.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function test_composefs_info_measure_files () {
assert_streq "$(tail -1 out.txt)" "91e7d88cb7bc9cf6d8db3b0ecf89af4abf204bef5b3ade5113d5b62ef374e70b"

if [ $has_fsverity = y ]; then
fsverity enable --hash-alg=256 test.txt
fsverity enable --hash-alg=sha256 test.txt
digest=$($BINDIR/composefs-info measure-file test.txt)
assert_streq "$digest" "37061ef2ac4c21bec68489b56138c5780306a4ad7fe6676236ecdf2c9027cd92"
fi
Expand Down

0 comments on commit 5f2be1f

Please sign in to comment.