aboutsummaryrefslogtreecommitdiff
path: root/tests/ubifs_tools-tests/lib/common.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ubifs_tools-tests/lib/common.sh.in')
-rwxr-xr-xtests/ubifs_tools-tests/lib/common.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ubifs_tools-tests/lib/common.sh.in b/tests/ubifs_tools-tests/lib/common.sh.in
index 5a07ebc..a27fe10 100755
--- a/tests/ubifs_tools-tests/lib/common.sh.in
+++ b/tests/ubifs_tools-tests/lib/common.sh.in
@@ -234,12 +234,13 @@ function encryption_gen_key()
function encryption_set_key()
{
mnt=$1
+ ignore_err=$2
# https://github.com/google/fscryptctl
key=$(fscryptctl add_key $mnt < $KEY_FILE)
fscryptctl set_policy $key $mnt
#fscryptctl get_policy $mnt
ret=$?
- if [[ $ret != 0 ]]; then
+ if [[ $ret != 0 && $ignore_err != 1 ]]; then
fatal "set encryption policy failed"
fi
}