1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

tests: report selinux mode

This commit is contained in:
Zdenek Kabelac 2014-03-02 19:15:52 +01:00
parent a2af5855c5
commit 75b5855ca1

View File

@ -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"