summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-03-26 16:06:46 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2021-03-26 20:39:40 +0100
commit5ef8d845694c79683ebdbdeec69eb2e534f4b1d2 (patch)
tree91296d3bb59a87ef64da0343bacf681e7bd9bfbc
parent49575a6ce1940528aaaac5eada8f8938e6cf4a84 (diff)
downloadlvm2-5ef8d845694c79683ebdbdeec69eb2e534f4b1d2.tar.gz
tests: better reporting of problematic services
-rw-r--r--test/shell/000-basic.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/shell/000-basic.sh b/test/shell/000-basic.sh
index a7b80c72b..15f2a6021 100644
--- a/test/shell/000-basic.sh
+++ b/test/shell/000-basic.sh
@@ -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