test: adapt to the new capsh format
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 4 Feb 2020 12:49:01 +0000 (13:49 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Feb 2020 09:11:42 +0000 (10:11 +0100)
commit9569e385036c05c0bf9fbccdbf3d131161398e2e
tree7afa266193953ea29a60e83bb99f6c82f70e6e4d
parentf2394ddb08122d554d02b0bab670b9ec63c03c17
test: adapt to the new capsh format

Since libcap v2.29 the format of cap_to_text() has been changed which
makes certain `test-execute` subtest fail. Let's remove the offending
part of the output (dropped capabilities) to make it compatible with
both the old and the new libcap.
test/test-execute/exec-capabilityboundingset-invert.service
test/test-execute/exec-privatedevices-no-capability-mknod.service
test/test-execute/exec-privatedevices-no-capability-sys-rawio.service
test/test-execute/exec-privatedevices-yes-capability-mknod.service
test/test-execute/exec-privatedevices-yes-capability-sys-rawio.service
test/test-execute/exec-protectkernellogs-no-capabilities.service
test/test-execute/exec-protectkernellogs-yes-capabilities.service
test/test-execute/exec-protectkernelmodules-no-capabilities.service
test/test-execute/exec-protectkernelmodules-yes-capabilities.service