master - tests: report selinux mode
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=75b5855ca1b4d524cb30a4373d1d2fe81d7b21f2 Commit: 75b5855ca1b4d524cb30a4373d1d2fe81d7b21f2 Parent: a2af5855c5b7e6360d246b802dadafbe79a6d5e4 Author: Zdenek Kabelac <[email protected]> AuthorDate: Sun Mar 2 19:15:52 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sun Mar 2 21:27:26 2014 +0100
tests: report selinux mode
--- test/lib/test.sh | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
test/lib/test.sh +9 -0
@@ -67,6 +67,13 @@ export DM_DEV_DIR LVM_SYSTEM_DIR DM_ABORT_ON_INTERNAL_ERRORS echo "$TESTNAME" >TESTNAME +# Report SELinux mode +if which getenforce &>/dev/null ; then + echo "Selinux mode is \"$(getenforce 2>/dev/null)\"." +else + echo "Selinux mode is not installed." +fi + # Setting up symlink from $i to $TESTDIR/lib find "$abs_top_builddir/daemons/dmeventd/plugins/" -name '*.so' \ -exec ln -s -t lib "{}" +
@@ -85,6 +92,8 @@ test -n "$LVM_TEST_LVMETAD" && { export LVM_LVMETAD_PIDFILE="$TESTDIR/lvmetad.pid" aux prepare_lvmetad } + +# Vars for harness echo "@TESTDIR=$TESTDIR" echo "@PREFIX=$PREFIX"