mirror of https://github.com/containers/podman.git
Cirrus: Simplify evil-unit check in image
Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
ceb3d76298
commit
f55288c96f
|
@ -36,10 +36,12 @@ do
|
|||
"$(systemctl list-unit-files --no-legend $REQ_UNIT)" = "$REQ_UNIT enabled" || let "RET+=1"
|
||||
done
|
||||
|
||||
# Exits zero if any unit matching pattern is running
|
||||
UNIT_STATUS=$(systemctl is-active $EVIL_UNITS; echo $?)
|
||||
item_test "No interfering background units are active:" \
|
||||
"$UNIT_STATUS" -ne "0" || let "RET+=1"
|
||||
for evil_unit in $EVIL_UNITS
|
||||
do
|
||||
# Exits zero if any unit matching pattern is running
|
||||
unit_status=$(systemctl is-active $evil_unit &> /dev/null; echo $?)
|
||||
item_test "No $evil_unit unit is present or active:" "$unit_status" -ne "0" || let "RET+=1"
|
||||
done
|
||||
|
||||
echo "Total failed tests: $RET"
|
||||
exit $RET
|
||||
|
|
Loading…
Reference in New Issue