summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2014-03-02 19:15:52 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2014-03-02 21:27:26 +0100
commit75b5855ca1b4d524cb30a4373d1d2fe81d7b21f2 (patch)
tree253b34b8cf22c3e85f302b48cc2e415a50df2676
parenta2af5855c5b7e6360d246b802dadafbe79a6d5e4 (diff)
downloadlvm2-75b5855ca1b4d524cb30a4373d1d2fe81d7b21f2.tar.gz
tests: report selinux mode
-rw-r--r--test/lib/test.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lib/test.sh b/test/lib/test.sh
index 71ad55d07..3dc0dfb1d 100644
--- a/test/lib/test.sh
+++ b/test/lib/test.sh
@@ -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"