Tidy test 2.2.2

Output was too long,
with apt-cache policy there is less output and we only take the line of contains Installed info and the one before (package name)
This commit is contained in:
yoavrotems 2020-09-03 14:36:43 +03:00 committed by GitHub
parent 9df881ae6f
commit ad10ef18a5
Failed to generate hash of commit

View file

@ -2792,13 +2792,20 @@ groups:
zypper remove xorg-x11*
- check:
audit: "apt-cache show xserver-xorg* | grep Package"
audit: "apt-cache policy xserver-xorg* | grep Installed -B1"
use_multiple_values: true
constraints:
platform:
- ubuntu18
tests:
tests:
bin_op: or
test_items:
- flag: "Installed-Size:"
- flag: "Installed"
compare:
op: eq
value: "(none)"
set: true
- flag: "Installed"
set: false
remediation: |
Remove the X Windows System packages using the appropriate package manager or manual installation: