Skip to content

Commit

Permalink
Tidy test 2.2.2
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
yoavrotems authored Sep 3, 2020
1 parent 9df881a commit ad10ef1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions cfg/2.0.0/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ad10ef1

Please sign in to comment.