]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: skip tests upon failure to set SELinux context
authorPádraig Brady <P@draigBrady.com>
Thu, 31 Aug 2017 00:16:23 +0000 (17:16 -0700)
committerPádraig Brady <P@draigBrady.com>
Thu, 31 Aug 2017 00:18:17 +0000 (17:18 -0700)
commit1e8c4582102ad62dcf2a7cc80aae64e200dc92ce
treea0912fe3be494a5e6b0001bafa64e3670a6d5d22
parent87a95504bb01a8662c08bd0a7367c5cc92286aa3
tests: skip tests upon failure to set SELinux context

On some setups the root:object_r:tmp_t context is invalid.
This does indicate a limitation in the test framework,
but for now we'll relax this to skipping the tests.
The tests still run on a Fedora 25 system for example.

* tests/cp/cp-a-selinux.sh: Upon chcon error, skip rather than ERROR.
* tests/install/install-Z-selinux.sh: Likewise.
* tests/misc/chcon.sh: Likewise.
* tests/misc/runcon-no-reorder.sh: Likewise.
* tests/misc/selinux.sh: Likewise.
* tests/mkdir/restorecon.sh: Likewise.
tests/cp/cp-a-selinux.sh
tests/install/install-Z-selinux.sh
tests/misc/chcon.sh
tests/misc/runcon-no-reorder.sh
tests/misc/selinux.sh
tests/mkdir/restorecon.sh