1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

tests: better reporting of problematic services

This commit is contained in:
Zdenek Kabelac 2021-03-26 16:06:46 +01:00
parent 49575a6ce1
commit 5ef8d84569

View File

@ -38,11 +38,11 @@ not lvs "${DEVICES[@]}"
# validate testing machine with its services is in expected state and will not interfere with tests
if systemctl -a >out 2>/dev/null ; then
for i in dm-event lvm2-lvmpolld lvm2-monitor ; do
echo $i
grep $i out | not grep -v masked || {
cat out
should not echo "Present unmasked $i service/socket may randomize testing results!"
echo "+++++ Stop & Mask with systemctl +++++"
}
grep $i out > mout || continue
grep -v masked mout || continue
should not echo "Present unmasked $i service/socket may randomize testing results!"
echo "+++++ Stop & Mask with systemctl +++++"
touch show_out
done
test ! -e show_out || cat out
fi