Merge lp:~robert-ancell/lightdm/unity-plymouth-fix into lp:lightdm

Proposed by Robert Ancell
Status: Merged
Approved by: Robert Ancell
Approved revision: 1708
Merged at revision: 1710
Proposed branch: lp:~robert-ancell/lightdm/unity-plymouth-fix
Merge into: lp:lightdm
Diff against target: 107 lines (+61/-1)
4 files modified
src/seat-unity.c (+7/-0)
tests/Makefile.am (+3/-1)
tests/scripts/unity-plymouth.conf (+49/-0)
tests/test-unity-plymouth (+2/-0)
To merge this branch: bzr merge lp:~robert-ancell/lightdm/unity-plymouth-fix
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Robert Ancell Approve
Review via email: mp+175800@code.launchpad.net

Commit message

Add in handling of "plymouth quit" when using the compositor to send the plymouth commands to deactivate and quit.

To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:1708
http://jenkins.qa.ubuntu.com/job/lightdm-ci/110/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/lightdm-saucy-amd64-ci/26/console

Click here to trigger a rebuild:
http://s-jenkins:8080/job/lightdm-ci/110/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/seat-unity.c'
2--- src/seat-unity.c 2013-07-16 22:06:06 +0000
3+++ src/seat-unity.c 2013-07-19 11:09:27 +0000
4@@ -146,6 +146,12 @@
5 close (fd);
6 }
7 }
8+
9+ if (seat->priv->stopping_plymouth)
10+ {
11+ seat->priv->stopping_plymouth = FALSE;
12+ plymouth_quit (TRUE);
13+ }
14 }
15
16 static void
17@@ -309,6 +315,7 @@
18 if (active_vt >= vt_get_min ())
19 {
20 g_debug ("Compositor will replace Plymouth");
21+ SEAT_UNITY (seat)->priv->stopping_plymouth = TRUE;
22 SEAT_UNITY (seat)->priv->vt = active_vt;
23 plymouth_deactivate ();
24 }
25
26=== modified file 'tests/Makefile.am'
27--- tests/Makefile.am 2013-07-19 09:44:06 +0000
28+++ tests/Makefile.am 2013-07-19 11:09:27 +0000
29@@ -162,7 +162,8 @@
30 test-unity-compositor-fail-ready \
31 test-unity-autologin \
32 test-unity-login \
33- test-unity-switch
34+ test-unity-switch \
35+ test-unity-plymouth
36
37 # test-session-exit-error
38 # test-greeter-no-exit
39@@ -370,6 +371,7 @@
40 scripts/unity-compositor-fail-ready.conf \
41 scripts/unity-compositor-fail-start.conf \
42 scripts/unity-login.conf \
43+ scripts/unity-plymouth.conf \
44 scripts/unity-switch.conf \
45 scripts/users.conf \
46 scripts/util-path.conf \
47
48=== added file 'tests/scripts/unity-plymouth.conf'
49--- tests/scripts/unity-plymouth.conf 1970-01-01 00:00:00 +0000
50+++ tests/scripts/unity-plymouth.conf 2013-07-19 11:09:27 +0000
51@@ -0,0 +1,49 @@
52+#
53+# Check Plymouth quits when Unity System compositor server is started. Plymouth is on an active VT so it handshakes with u-s-c.
54+#
55+
56+[SeatDefaults]
57+type=unity
58+autologin-user=have-password1
59+user-session=default
60+
61+[test-plymouth-config]
62+enabled=true
63+has-active-vt=true
64+active=true
65+
66+#?RUNNER DAEMON-START
67+
68+# Check if Plymouth is running
69+#?PLYMOUTH PING ACTIVE=TRUE
70+#?PLYMOUTH HAS-ACTIVE-VT=TRUE
71+#?PLYMOUTH DEACTIVATE
72+
73+# System compositor starts
74+#?UNITY-SYSTEM-COMPOSITOR START VT=7
75+#?*UNITY-SYSTEM-COMPOSITOR READY
76+
77+# Plymouth quits but keeps image in framebuffer
78+#?PLYMOUTH QUIT RETAIN-SPLASH=TRUE
79+
80+# X server starts
81+#?XSERVER-0 START MIR-ID=0
82+#?XSERVER-0 INDICATE-READY
83+
84+# LightDM connects to X server
85+#?XSERVER-0 ACCEPT-CONNECT
86+
87+# Session starts
88+#?SESSION-X-0 START USER=have-password1
89+#?XSERVER-0 ACCEPT-CONNECT
90+#?SESSION-X-0 CONNECT-XSERVER
91+
92+# System compositor switches to session
93+#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=0
94+
95+# Cleanup
96+#?*STOP-DAEMON
97+#?SESSION-X-0 TERMINATE SIGNAL=15
98+#?XSERVER-0 TERMINATE SIGNAL=15
99+#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15
100+#?RUNNER DAEMON-EXIT STATUS=0
101
102=== added file 'tests/test-unity-plymouth'
103--- tests/test-unity-plymouth 1970-01-01 00:00:00 +0000
104+++ tests/test-unity-plymouth 2013-07-19 11:09:27 +0000
105@@ -0,0 +1,2 @@
106+#!/bin/sh
107+./src/dbus-env ./src/test-runner unity-plymouth test-gobject-greeter

Subscribers

People subscribed via source and target branches