From 5f2be1f64f531f520943825ead9d738045234922 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 28 Aug 2024 10:31:19 +0200 Subject: [PATCH] test-units: Fix fsverity invocation The hash algorithm is "sha256", not "256". Signed-off-by: Alexander Larsson --- tests/test-units.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-units.sh b/tests/test-units.sh index e1b3e511..14d88cc0 100755 --- a/tests/test-units.sh +++ b/tests/test-units.sh @@ -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