Skip to content

Commit

Permalink
TCRYPT: fix system encryption test if kernel does not support EFI par…
Browse files Browse the repository at this point in the history
…tition

If kernel is mising CONFIG_EFI_PARTITION, the required partitons
are missing too.
Just skip the test if loop block device is not available.
  • Loading branch information
mbroz committed Jul 12, 2024
1 parent 94f37ef commit 7a816ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/tcrypt-compat-test
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,17 @@ for file in $(ls $TST_DIR/sys_[tv]c_*) ; do
echo " [N/A]"
continue
fi
if [ -b "$LOOP_SYS"p3 ]; then
if [[ $file =~ _gpt_ ]]; then
LOOP_PART="$LOOP_SYS"p3
else
LOOP_PART="$LOOP_SYS"p1
fi
if [ ! -b "$LOOP_PART" ]; then
echo " [N/A]"
losetup -d $LOOP_SYS
LOOP_SYS=""
continue
fi
get_HASH_CIPHER $file
# map through partition name
echo -n " [PART]"
Expand Down

0 comments on commit 7a816ab

Please sign in to comment.