From 57be034ce4700fb07c10b771628c1c63d8483d09 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 23 Dec 2021 11:39:08 -0600 Subject: cli-tests: add helper functions to get protector descriptors --- cli-tests/t_change_passphrase.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli-tests/t_change_passphrase.sh') diff --git a/cli-tests/t_change_passphrase.sh b/cli-tests/t_change_passphrase.sh index 204512d..1360bc2 100755 --- a/cli-tests/t_change_passphrase.sh +++ b/cli-tests/t_change_passphrase.sh @@ -14,7 +14,7 @@ echo pass1 | fscrypt encrypt --quiet --name=prot --skip-unlock "$dir" _print_header "Try to unlock with wrong passphrase" _expect_failure "echo pass2 | fscrypt unlock --quiet '$dir'" _expect_failure "mkdir '$dir/subdir'" -protector=$(fscrypt status "$dir" | awk '/custom protector/{print $1}') +protector=$(_get_protector_descriptor "$dir" custom prot) _print_header "Change passphrase" echo $'pass1\npass2' | \ -- cgit v1.2.3