1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-24 17:57:48 +03:00

tests: handle su login difference

Workaround case, where it matters if 'su' was user with '-' or without.
This commit is contained in:
Zdenek Kabelac 2017-06-23 15:11:26 +02:00
parent cc03a872c0
commit d0c97b4401

View File

@ -31,7 +31,8 @@ aux target_at_least dm-zero 1 0 0 || skip "missing dm-zero target"
aux target_at_least dm-crypt 1 15 0 || skip "dm-crypt doesn't support keys in kernel keyring service" aux target_at_least dm-crypt 1 15 0 || skip "dm-crypt doesn't support keys in kernel keyring service"
which keyctl || skip "test requires keyctl utility" which keyctl || skip "test requires keyctl utility"
keyctl newring $PREFIX-keyring @u keyctl new_session || true # fails with 'su', works with 'su -'
keyctl newring $PREFIX-keyring @s
keyctl timeout %:$PREFIX-keyring 60 keyctl timeout %:$PREFIX-keyring 60
trap '_teardown' EXIT trap '_teardown' EXIT