diff options
author | Chris Evich <cevich@redhat.com> | 2019-07-12 10:32:12 -0400 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2019-07-16 14:30:42 -0400 |
commit | f58b754c8d3a45b8d9123c624bf299b87285c3bf (patch) | |
tree | d6cb0b59cea580450d6d76bbc9ab65fca4516ac8 /contrib/cirrus/check_image.sh | |
parent | efdb7ad8f2da30c0d1de07d54cc81027aa8720c9 (diff) | |
download | podman-f58b754c8d3a45b8d9123c624bf299b87285c3bf.tar.gz podman-f58b754c8d3a45b8d9123c624bf299b87285c3bf.tar.bz2 podman-f58b754c8d3a45b8d9123c624bf299b87285c3bf.zip |
Cirrus: Add image-test for locked dpkg
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/check_image.sh')
-rwxr-xr-x | contrib/cirrus/check_image.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/cirrus/check_image.sh b/contrib/cirrus/check_image.sh index 67e807d61..690a38119 100755 --- a/contrib/cirrus/check_image.sh +++ b/contrib/cirrus/check_image.sh @@ -36,4 +36,10 @@ 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" + +echo "Total failed tests: $RET" exit $RET |