Merge ~pwlars/plainbox-provider-checkbox:xorg-needs-xorg into plainbox-provider-checkbox:master

Proposed by Paul Larson
Status: Merged
Approved by: Jonathan Cave
Approved revision: 80c646bd4301b5fde42374f317fbaade40990118
Merged at revision: da551342ac8e5579a30dce7ea980d8be0ce6aafb
Proposed branch: ~pwlars/plainbox-provider-checkbox:xorg-needs-xorg
Merge into: plainbox-provider-checkbox:master
Diff against target: 43 lines (+12/-11)
1 file modified
units/graphics/jobs.pxu (+12/-11)
Reviewer Review Type Date Requested Status
Jonathan Cave (community) Approve
Maciej Kisielewski Approve
Review via email: mp+387449@code.launchpad.net

Description of the change

I was trying to run a test plan on bionic server images and hit a test fail for xorg-version, which was a little surprising. Something along the way depended on x11-utils, which was enough to make it try to run, but in order to get anything from xdpyinfo, xorg needs to be installed and actually even running. Depending on xorg-process should take care of that

To post a comment you must log in.
Revision history for this message
Maciej Kisielewski (kissiel) wrote :

Makes total sense. +1

review: Approve
Revision history for this message
Jonathan Cave (jocave) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/units/graphics/jobs.pxu b/units/graphics/jobs.pxu
2index fba1f7e..adc3628 100644
3--- a/units/graphics/jobs.pxu
4+++ b/units/graphics/jobs.pxu
5@@ -13,8 +13,20 @@ _summary: Test X driver/version for {vendor} {product}
6
7 plugin: shell
8 category_id: com.canonical.plainbox::graphics
9+id: graphics/xorg-process
10+requires:
11+ package.name == 'xorg'
12+ package.name == 'procps'
13+command: pgrep -a -f '/usr/lib/xorg/Xorg'
14+estimated_duration: 0.100
15+_description: Test that the X process is running.
16+_summary: Test that the X process is running.
17+
18+plugin: shell
19+category_id: com.canonical.plainbox::graphics
20 id: graphics/xorg-version
21 requires: package.name == "x11-utils"
22+depends: graphics/xorg-process
23 command: set -o pipefail; xdpyinfo | grep "^X.Org version" | cut -d ':' -f 2 | tr -d ' '
24 estimated_duration: 0.018
25 _description: Test to output the Xorg version
26@@ -42,17 +54,6 @@ _description:
27
28 plugin: shell
29 category_id: com.canonical.plainbox::graphics
30-id: graphics/xorg-process
31-requires:
32- package.name == 'xorg'
33- package.name == 'procps'
34-command: pgrep -a -f '/usr/lib/xorg/Xorg'
35-estimated_duration: 0.100
36-_description: Test that the X process is running.
37-_summary: Test that the X process is running.
38-
39-plugin: shell
40-category_id: com.canonical.plainbox::graphics
41 id: graphics/xorg-failsafe
42 requires: package.name == 'xorg'
43 command: ! test -e /var/log/Xorg.failsafe.log

Subscribers

People subscribed via source and target branches