From c39fc85f8045bb24f773a3eb5dee7738cdc4339f Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 13 Jun 2020 10:06:15 -0700 Subject: cli-tests/t_v1_policy: clean up user keyrings at end of test The test user's user keyring is still linked into root's user keyring at the end of the test. This is making the test flaky, as there is a failure that only occurs the first time it is run. Fix the test to restore the initial state. This makes it consistently fail (to be fixed by the next commit). --- cli-tests/t_v1_policy.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'cli-tests/t_v1_policy.sh') diff --git a/cli-tests/t_v1_policy.sh b/cli-tests/t_v1_policy.sh index e9f3acf..e883dcd 100755 --- a/cli-tests/t_v1_policy.sh +++ b/cli-tests/t_v1_policy.sh @@ -6,6 +6,7 @@ cd "$(dirname "$0")" . common.sh _setup_session_keyring +trap _cleanup_user_keyrings EXIT dir="$MNT/dir" mkdir "$dir" -- cgit v1.2.3