Merge ~sylvain-pineau/checkbox-support:fix-1827826 into checkbox-support:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 169d2be77082fc1ba6864f10a5402129894d15b5
Merged at revision: 3907bd028b0f420c204874b1fb0631feb683d2cc
Proposed branch: ~sylvain-pineau/checkbox-support:fix-1827826
Merge into: checkbox-support:master
Diff against target: 683 lines (+637/-3)
3 files modified
checkbox_support/parsers/pactl.py (+8/-3)
checkbox_support/parsers/tests/pactl_data/pa_ucm_pre_tag_bionic.txt (+619/-0)
checkbox_support/parsers/tests/test_pactl.py (+10/-0)
Reviewer Review Type Date Requested Status
Devices Certification Bot Needs Fixing
Sylvain Pineau (community) Approve
Review via email: mp+367029@code.launchpad.net

Description of the change

Fixes linked bug (update of the pactl parser)

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Tested using:

$ LANG=C cat pactl_list.txt | python3 -m plainbox dev parse pactl-list

review: Approve
Revision history for this message
Devices Certification Bot (ce-certification-qa) wrote :

The merge was fine but running tests failed.

[xenial] [10:21:33] starting container
Device project added to xenial-testing
[xenial] [10:21:44] provisioning container
[trusty] [10:21:52] starting container
[bionic] [10:21:53] starting container
Device project added to trusty-testing
Device project added to bionic-testing
[trusty] [10:22:06] provisioning container
[bionic] [10:22:07] provisioning container
[trusty] [10:24:07] Unable to provision requirements in container!
[bionic] [10:24:07] Unable to provision requirements in container!
[trusty] output: https://paste.ubuntu.com/p/97gfp2Yx9x/
[trusty] [10:24:10] Fixing file permissions in source directory
[bionic] output: https://paste.ubuntu.com/p/GJMQwgxCPp/
[bionic] [10:24:10] Fixing file permissions in source directory
[bionic] Destroying failed container to reclaim resources
[trusty] Destroying failed container to reclaim resources
[xenial] [10:24:24] Unable to provision requirements in container!
[xenial] output: https://paste.ubuntu.com/p/s6SdMZYq6p/
[xenial] [10:24:26] Fixing file permissions in source directory
[xenial] Destroying failed container to reclaim resources

review: Needs Fixing
Revision history for this message
Devices Certification Bot (ce-certification-qa) wrote :

The merge was fine but running tests failed.

[bionic] [10:51:32] starting container
[trusty] [10:51:32] starting container
Device project added to bionic-testing
Device project added to trusty-testing
[xenial] [10:51:35] starting container
Device project added to xenial-testing
[bionic] [10:51:48] provisioning container
[trusty] [10:51:49] provisioning container
[xenial] [10:51:49] provisioning container
[bionic] [10:51:56] Unable to provision requirements in container!
[bionic] output: https://paste.ubuntu.com/p/cn2xPSprfK/
[bionic] [10:51:59] Fixing file permissions in source directory
[bionic] Destroying failed container to reclaim resources
[xenial] [10:52:10] Starting tests...
[xenial] Found a test script: ./requirements/container-tests-checkbox-support
[trusty] [10:52:29] Starting tests...
[trusty] Found a test script: ./requirements/container-tests-checkbox-support
[xenial] [10:52:39] container-tests-checkbox-support: PASS
[xenial] [10:52:39] Fixing file permissions in source directory
[xenial] [10:52:39] Destroying container
[trusty] [10:52:54] container-tests-checkbox-support: PASS
[trusty] [10:52:54] Fixing file permissions in source directory
[trusty] [10:52:54] Destroying container

review: Needs Fixing

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/checkbox_support/parsers/pactl.py b/checkbox_support/parsers/pactl.py
index 928e2e5..0d8e227 100644
--- a/checkbox_support/parsers/pactl.py
+++ b/checkbox_support/parsers/pactl.py
@@ -1,8 +1,9 @@
1# This file is part of Checkbox.1# This file is part of Checkbox.
2#2#
3# Copyright 2013 Canonical Ltd.3# Copyright 2013-2019 Canonical Ltd.
4# Written by:4# Written by:
5# Zygmunt Krynicki <zygmunt.krynicki@canonical.com>5# Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
6# Sylvain Pineau <sylvain.pineau@canonical.com>
6#7#
7# Checkbox is free software: you can redistribute it and/or modify8# Checkbox is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License version 3,9# it under the terms of the GNU General Public License version 3,
@@ -220,7 +221,9 @@ class Port(Node):
220 }221 }
221222
222 __syntax__ = (223 __syntax__ = (
223 p.Word(p.alphanums + "-;").setResultsName('port-name')224 p.Optional('[Out] ').suppress()
225 + p.Optional('[In] ').suppress()
226 + p.Word(p.alphanums + "-;").setResultsName('port-name')
224 + p.Suppress(':')227 + p.Suppress(':')
225 # This part was very tricky to write. The label is basically228 # This part was very tricky to write. The label is basically
226 # arbitrary localized Unicode text. We want to grab all of it in229 # arbitrary localized Unicode text. We want to grab all of it in
@@ -283,7 +286,9 @@ class PortWithProfile(Node):
283 }286 }
284287
285 __syntax__ = (288 __syntax__ = (
286 p.Word(p.alphanums + "-;").setResultsName('port-name')289 p.Optional('[Out] ').suppress()
290 + p.Optional('[In] ').suppress()
291 + p.Word(p.alphanums + "-;").setResultsName('port-name')
287 + p.Suppress(':')292 + p.Suppress(':')
288 # This part was very tricky to write. The label is basically arbitrary293 # This part was very tricky to write. The label is basically arbitrary
289 # localized Unicode text. We want to grab all of it in one go but294 # localized Unicode text. We want to grab all of it in one go but
diff --git a/checkbox_support/parsers/tests/pactl_data/pa_ucm_pre_tag_bionic.txt b/checkbox_support/parsers/tests/pactl_data/pa_ucm_pre_tag_bionic.txt
290new file mode 100644295new file mode 100644
index 0000000..1b67e20
--- /dev/null
+++ b/checkbox_support/parsers/tests/pactl_data/pa_ucm_pre_tag_bionic.txt
@@ -0,0 +1,619 @@
1Module #0
2 Name: module-device-restore
3 Argument:
4 Usage counter: n/a
5 Properties:
6 module.author = "Lennart Poettering"
7 module.description = "Automatically restore the volume/mute state of devices"
8 module.version = "11.1"
9
10Module #1
11 Name: module-stream-restore
12 Argument:
13 Usage counter: n/a
14 Properties:
15 module.author = "Lennart Poettering"
16 module.description = "Automatically restore the volume/mute/device state of streams"
17 module.version = "11.1"
18
19Module #2
20 Name: module-card-restore
21 Argument:
22 Usage counter: n/a
23 Properties:
24 module.author = "Lennart Poettering"
25 module.description = "Automatically restore profile of cards"
26 module.version = "11.1"
27
28Module #3
29 Name: module-augment-properties
30 Argument:
31 Usage counter: n/a
32 Properties:
33 module.author = "Lennart Poettering"
34 module.description = "Augment the property sets of streams with additional static information"
35 module.version = "11.1"
36
37Module #4
38 Name: module-switch-on-port-available
39 Argument:
40 Usage counter: n/a
41 Properties:
42
43
44Module #5
45 Name: module-switch-on-connect
46 Argument:
47 Usage counter: n/a
48 Properties:
49 module.author = "Michael Terry"
50 module.description = "When a sink/source is added, switch to it or conditionally switch to it"
51 module.version = "11.1"
52
53Module #6
54 Name: module-udev-detect
55 Argument:
56 Usage counter: n/a
57 Properties:
58 module.author = "Lennart Poettering"
59 module.description = "Detect available audio hardware and load matching drivers"
60 module.version = "11.1"
61
62Module #7
63 Name: module-alsa-card
64 Argument: device_id="0" name="pci-0000_00_1f.3-platform-skl_hda_dsp_generic" card_name="alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
65 Usage counter: 0
66 Properties:
67 module.author = "Lennart Poettering"
68 module.description = "ALSA Card"
69 module.version = "11.1"
70
71Module #8
72 Name: module-bluetooth-policy
73 Argument:
74 Usage counter: n/a
75 Properties:
76 module.author = "Frédéric Dalleau, Pali Rohár"
77 module.description = "Policy module to make using bluetooth devices out-of-the-box easier"
78 module.version = "11.1"
79
80Module #9
81 Name: module-bluetooth-discover
82 Argument:
83 Usage counter: n/a
84 Properties:
85 module.author = "João Paulo Rechi Vita"
86 module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
87 module.version = "11.1"
88
89Module #10
90 Name: module-bluez5-discover
91 Argument:
92 Usage counter: n/a
93 Properties:
94 module.author = "João Paulo Rechi Vita"
95 module.description = "Detect available BlueZ 5 Bluetooth audio devices and load BlueZ 5 Bluetooth audio drivers"
96 module.version = "11.1"
97
98Module #11
99 Name: module-native-protocol-unix
100 Argument:
101 Usage counter: n/a
102 Properties:
103 module.author = "Lennart Poettering"
104 module.description = "Native protocol (UNIX sockets)"
105 module.version = "11.1"
106
107Module #12
108 Name: module-default-device-restore
109 Argument:
110 Usage counter: n/a
111 Properties:
112 module.author = "Lennart Poettering"
113 module.description = "Automatically restore the default sink and source"
114 module.version = "11.1"
115
116Module #13
117 Name: module-rescue-streams
118 Argument:
119 Usage counter: n/a
120 Properties:
121 module.author = "Lennart Poettering"
122 module.description = "When a sink/source is removed, try to move its streams to the default sink/source"
123 module.version = "11.1"
124
125Module #14
126 Name: module-always-sink
127 Argument:
128 Usage counter: n/a
129 Properties:
130 module.author = "Colin Guthrie"
131 module.description = "Always keeps at least one sink loaded even if it's a null one"
132 module.version = "11.1"
133
134Module #15
135 Name: module-intended-roles
136 Argument:
137 Usage counter: n/a
138 Properties:
139 module.author = "Lennart Poettering"
140 module.description = "Automatically set device of streams based on intended roles of devices"
141 module.version = "11.1"
142
143Module #16
144 Name: module-suspend-on-idle
145 Argument:
146 Usage counter: n/a
147 Properties:
148 module.author = "Lennart Poettering"
149 module.description = "When a sink/source is idle for too long, suspend it"
150 module.version = "11.1"
151
152Module #17
153 Name: module-console-kit
154 Argument:
155 Usage counter: n/a
156 Properties:
157 module.author = "Lennart Poettering"
158 module.description = "Create a client for each ConsoleKit session of this user"
159 module.version = "11.1"
160
161Module #18
162 Name: module-systemd-login
163 Argument:
164 Usage counter: n/a
165 Properties:
166 module.author = "Lennart Poettering"
167 module.description = "Create a client for each login session of this user"
168 module.version = "11.1"
169
170Module #19
171 Name: module-position-event-sounds
172 Argument:
173 Usage counter: n/a
174 Properties:
175 module.author = "Lennart Poettering"
176 module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
177 module.version = "11.1"
178
179Module #20
180 Name: module-role-cork
181 Argument:
182 Usage counter: n/a
183 Properties:
184 module.author = "Lennart Poettering"
185 module.description = "Mute & cork streams with certain roles while others exist"
186 module.version = "11.1"
187
188Module #21
189 Name: module-filter-heuristics
190 Argument:
191 Usage counter: n/a
192 Properties:
193 module.author = "Colin Guthrie"
194 module.description = "Detect when various filters are desirable"
195 module.version = "11.1"
196
197Module #22
198 Name: module-filter-apply
199 Argument:
200 Usage counter: n/a
201 Properties:
202 module.author = "Colin Guthrie"
203 module.description = "Load filter sinks automatically when needed"
204 module.version = "11.1"
205
206Module #23
207 Name: module-x11-publish
208 Argument: display=:0
209 Usage counter: n/a
210 Properties:
211 module.author = "Lennart Poettering"
212 module.description = "X11 credential publisher"
213 module.version = "11.1"
214
215Module #24
216 Name: module-x11-bell
217 Argument: display=:0 sample=bell.ogg
218 Usage counter: n/a
219 Properties:
220 module.author = "Lennart Poettering"
221 module.description = "X11 bell interceptor"
222 module.version = "11.1"
223
224Module #25
225 Name: module-x11-cork-request
226 Argument: display=:0
227 Usage counter: n/a
228 Properties:
229 module.author = "Lennart Poettering"
230 module.description = "Synthesize X11 media key events when cork/uncork is requested"
231 module.version = "11.1"
232
233Module #26
234 Name: module-x11-xsmp
235 Argument: display=:0 session_manager=local/test-Inspiron-5490:@/tmp/.ICE-unix/2115,unix/test-Inspiron-5490:/tmp/.ICE-unix/2115
236 Usage counter: n/a
237 Properties:
238 module.author = "Lennart Poettering"
239 module.description = "X11 session management"
240 module.version = "11.1"
241
242Sink #0
243 State: SUSPENDED
244 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofsklhdacard_0__sink
245 Description: sof-skl_hda_card Speaker + Headphone
246 Driver: module-alsa-card.c
247 Sample Specification: s16le 2ch 48000Hz
248 Channel Map: front-left,front-right
249 Owner Module: 7
250 Mute: no
251 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
252 balance 0.00
253 Base Volume: 65536 / 100% / 0.00 dB
254 Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofsklhdacard_0__sink.monitor
255 Latency: 0 usec, configured 0 usec
256 Flags: HARDWARE DECIBEL_VOLUME LATENCY
257 Properties:
258 alsa.resolution_bits = "16"
259 device.api = "alsa"
260 device.class = "sound"
261 alsa.class = "generic"
262 alsa.subclass = "generic-mix"
263 alsa.name = ""
264 alsa.id = "HDA Analog (*)"
265 alsa.subdevice = "0"
266 alsa.subdevice_name = "subdevice #0"
267 alsa.device = "0"
268 alsa.card = "0"
269 alsa.card_name = "sof-skl_hda_card"
270 alsa.long_card_name = "DellInc.-Inspiron5490--"
271 alsa.driver_name = "snd_soc_skl_hda_dsp"
272 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
273 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
274 device.bus = "pci"
275 device.vendor.id = "8086"
276 device.vendor.name = "Intel Corporation"
277 device.product.id = "9dc8"
278 device.string = "hw:sofsklhdacard,0"
279 device.buffering.buffer_size = "65472"
280 device.buffering.fragment_size = "16320"
281 device.access_mode = "mmap+timer"
282 device.profile.name = "HiFi: hw:sofsklhdacard,0: sink"
283 device.profile.description = "Speaker + Headphone"
284 device.description = "sof-skl_hda_card Speaker + Headphone"
285 module-udev-detect.discovered = "1"
286 device.icon_name = "audio-card-pci"
287 Ports:
288 [Out] Speaker: Speaker (priority: 100, not available)
289 [Out] Headphone: Headphone (priority: 100, available)
290 Active Port: [Out] Headphone
291 Formats:
292 pcm
293
294Source #0
295 State: SUSPENDED
296 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofsklhdacard_0__sink.monitor
297 Description: Monitor of sof-skl_hda_card Speaker + Headphone
298 Driver: module-alsa-card.c
299 Sample Specification: s16le 2ch 48000Hz
300 Channel Map: front-left,front-right
301 Owner Module: 7
302 Mute: no
303 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
304 balance 0.00
305 Base Volume: 65536 / 100% / 0.00 dB
306 Monitor of Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofsklhdacard_0__sink
307 Latency: 0 usec, configured 0 usec
308 Flags: DECIBEL_VOLUME LATENCY
309 Properties:
310 device.description = "Monitor of sof-skl_hda_card Speaker + Headphone"
311 device.class = "monitor"
312 alsa.card = "0"
313 alsa.card_name = "sof-skl_hda_card"
314 alsa.long_card_name = "DellInc.-Inspiron5490--"
315 alsa.driver_name = "snd_soc_skl_hda_dsp"
316 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
317 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
318 device.bus = "pci"
319 device.vendor.id = "8086"
320 device.vendor.name = "Intel Corporation"
321 device.product.id = "9dc8"
322 device.string = "0"
323 module-udev-detect.discovered = "1"
324 device.icon_name = "audio-card-pci"
325 Formats:
326 pcm
327
328Source #1
329 State: SUSPENDED
330 Name: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofsklhdacard_6__source
331 Description: sof-skl_hda_card Digital Micrphone
332 Driver: module-alsa-card.c
333 Sample Specification: s16le 2ch 48000Hz
334 Channel Map: front-left,front-right
335 Owner Module: 7
336 Mute: no
337 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
338 balance 0.00
339 Base Volume: 65536 / 100% / 0.00 dB
340 Monitor of Sink: n/a
341 Latency: 0 usec, configured 0 usec
342 Flags: HARDWARE DECIBEL_VOLUME LATENCY
343 Properties:
344 alsa.resolution_bits = "16"
345 device.api = "alsa"
346 device.class = "sound"
347 alsa.class = "generic"
348 alsa.subclass = "generic-mix"
349 alsa.name = ""
350 alsa.id = "DMIC32 (*)"
351 alsa.subdevice = "0"
352 alsa.subdevice_name = "subdevice #0"
353 alsa.device = "6"
354 alsa.card = "0"
355 alsa.card_name = "sof-skl_hda_card"
356 alsa.long_card_name = "DellInc.-Inspiron5490--"
357 alsa.driver_name = "snd_soc_skl_hda_dsp"
358 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
359 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
360 device.bus = "pci"
361 device.vendor.id = "8086"
362 device.vendor.name = "Intel Corporation"
363 device.product.id = "9dc8"
364 device.string = "hw:sofsklhdacard,6"
365 device.buffering.buffer_size = "65472"
366 device.buffering.fragment_size = "16320"
367 device.access_mode = "mmap+timer"
368 device.profile.name = "HiFi: hw:sofsklhdacard,6: source"
369 device.profile.description = "Digital Micrphone"
370 device.description = "sof-skl_hda_card Digital Micrphone"
371 module-udev-detect.discovered = "1"
372 device.icon_name = "audio-card-pci"
373 Ports:
374 [In] Dmic: Digital Micrphone (priority: 100)
375 Active Port: [In] Dmic
376 Formats:
377 pcm
378
379Source #2
380 State: SUSPENDED
381 Name: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofsklhdacard_0__source
382 Description: sof-skl_hda_card Headset Mic
383 Driver: module-alsa-card.c
384 Sample Specification: s16le 2ch 48000Hz
385 Channel Map: front-left,front-right
386 Owner Module: 7
387 Mute: no
388 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
389 balance 0.00
390 Base Volume: 65536 / 100% / 0.00 dB
391 Monitor of Sink: n/a
392 Latency: 0 usec, configured 0 usec
393 Flags: HARDWARE DECIBEL_VOLUME LATENCY
394 Properties:
395 alsa.resolution_bits = "16"
396 device.api = "alsa"
397 device.class = "sound"
398 alsa.class = "generic"
399 alsa.subclass = "generic-mix"
400 alsa.name = ""
401 alsa.id = "HDA Analog (*)"
402 alsa.subdevice = "0"
403 alsa.subdevice_name = "subdevice #0"
404 alsa.device = "0"
405 alsa.card = "0"
406 alsa.card_name = "sof-skl_hda_card"
407 alsa.long_card_name = "DellInc.-Inspiron5490--"
408 alsa.driver_name = "snd_soc_skl_hda_dsp"
409 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
410 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
411 device.bus = "pci"
412 device.vendor.id = "8086"
413 device.vendor.name = "Intel Corporation"
414 device.product.id = "9dc8"
415 device.string = "hw:sofsklhdacard,0"
416 device.buffering.buffer_size = "65472"
417 device.buffering.fragment_size = "16320"
418 device.access_mode = "mmap+timer"
419 device.profile.name = "HiFi: hw:sofsklhdacard,0: source"
420 device.profile.description = "Headset Mic"
421 device.description = "sof-skl_hda_card Headset Mic"
422 module-udev-detect.discovered = "1"
423 device.icon_name = "audio-card-pci"
424 Ports:
425 [In] Microphone: Headset Mic (priority: 100, available)
426 Active Port: [In] Microphone
427 Formats:
428 pcm
429
430Client #0
431 Driver: module-systemd-login.c
432 Owner Module: 18
433 Properties:
434 application.name = "Login Session 1"
435 systemd-login.session = "1"
436
437Client #1
438 Driver: protocol-native.c
439 Owner Module: 11
440 Properties:
441 application.name = "GNOME Shell"
442 native-protocol.peer = "UNIX socket client"
443 native-protocol.version = "32"
444 application.id = "org.gnome.Shell"
445 application.icon_name = "start-here"
446 application.language = "en_US.UTF-8"
447 window.x11.screen = "0"
448 window.x11.display = ":0"
449 application.process.id = "2238"
450 application.process.user = "test"
451 application.process.host = "test-Inspiron-5490"
452 application.process.binary = "gnome-shell"
453 application.process.machine_id = "61cc4f75157f4bb2bc4a9238c8f86c61"
454 application.process.session_id = "1"
455
456Client #2
457 Driver: protocol-native.c
458 Owner Module: 11
459 Properties:
460 application.name = "GNOME Shell Volume Control"
461 native-protocol.peer = "UNIX socket client"
462 native-protocol.version = "32"
463 application.id = "org.gnome.VolumeControl"
464 application.icon_name = "multimedia-volume-control"
465 application.version = "3.28.1"
466 application.process.id = "2238"
467 application.process.user = "test"
468 application.process.host = "test-Inspiron-5490"
469 application.process.binary = "gnome-shell"
470 application.language = "en_US.UTF-8"
471 window.x11.display = ":0"
472 application.process.machine_id = "61cc4f75157f4bb2bc4a9238c8f86c61"
473 application.process.session_id = "1"
474
475Client #8
476 Driver: module-x11-xsmp.c
477 Owner Module: 26
478 Properties:
479 application.name = "XSMP Session on gnome-session as 10a9331489bfab849a155721588398538200000021150058"
480 xsmp.vendor = "gnome-session"
481 xsmp.client.id = "10a9331489bfab849a155721588398538200000021150058"
482
483Client #9
484 Driver: protocol-native.c
485 Owner Module: 11
486 Properties:
487 application.name = "GNOME Volume Control Media Keys"
488 native-protocol.peer = "UNIX socket client"
489 native-protocol.version = "32"
490 application.id = "org.gnome.VolumeControl"
491 application.icon_name = "multimedia-volume-control"
492 application.version = ""
493 application.process.id = "2461"
494 application.process.user = "test"
495 application.process.host = "test-Inspiron-5490"
496 application.process.binary = "gsd-media-keys"
497 application.language = "en_US.UTF-8"
498 window.x11.display = ":0"
499 application.process.machine_id = "61cc4f75157f4bb2bc4a9238c8f86c61"
500 application.process.session_id = "1"
501
502Client #18
503 Driver: module-systemd-login.c
504 Owner Module: 18
505 Properties:
506 application.name = "Login Session 4"
507 systemd-login.session = "4"
508
509Client #19
510 Driver: module-systemd-login.c
511 Owner Module: 18
512 Properties:
513 application.name = "Login Session 5"
514 systemd-login.session = "5"
515
516Client #25
517 Driver: protocol-native.c
518 Owner Module: 11
519 Properties:
520 application.name = "pactl"
521 native-protocol.peer = "UNIX socket client"
522 native-protocol.version = "32"
523 application.process.id = "19283"
524 application.process.user = "test"
525 application.process.host = "test-Inspiron-5490"
526 application.process.binary = "pactl"
527 application.language = "en_US.UTF-8"
528 window.x11.display = "localhost:10.0"
529 application.process.machine_id = "61cc4f75157f4bb2bc4a9238c8f86c61"
530 application.process.session_id = "4"
531
532Sample #0
533 Name: bell.ogg
534 Sample Specification: float32le 1ch 44100Hz
535 Channel Map: mono
536 Volume: (invalid)
537 balance 0.00
538 Duration: 0.2s
539 Size: 34.5 KiB
540 Lazy: no
541 Filename: n/a
542 Properties:
543 media.role = "event"
544 media.name = "bell.ogg"
545 application.name = "pactl"
546 native-protocol.peer = "UNIX socket client"
547 native-protocol.version = "32"
548 application.process.id = "2451"
549 application.process.user = "test"
550 application.process.host = "test-Inspiron-5490"
551 application.process.binary = "pactl"
552 application.language = "en_US.UTF-8"
553 window.x11.display = ":0"
554 application.process.machine_id = "61cc4f75157f4bb2bc4a9238c8f86c61"
555 application.process.session_id = "1"
556
557Sample #1
558 Name: bell-window-system
559 Sample Specification: s16le 1ch 44100Hz
560 Channel Map: mono
561 Volume: (invalid)
562 balance 0.00
563 Duration: 0.2s
564 Size: 17.2 KiB
565 Lazy: no
566 Filename: n/a
567 Properties:
568 media.role = "event"
569 application.process.id = "3077"
570 application.name = "gnome-terminal-server"
571 event.description = "Bell event"
572 event.id = "bell-window-system"
573 media.name = "bell-window-system"
574 media.filename = "/usr/share/sounds/ubuntu/stereo/bell.ogg"
575 native-protocol.peer = "UNIX socket client"
576 native-protocol.version = "32"
577 application.id = "org.gnome.Shell"
578 application.icon_name = "start-here"
579 application.language = "en_US.UTF-8"
580 window.x11.screen = "0"
581 window.x11.display = ":0"
582 application.process.user = "test"
583 application.process.host = "test-Inspiron-5490"
584 application.process.binary = "gnome-shell"
585 application.process.machine_id = "61cc4f75157f4bb2bc4a9238c8f86c61"
586 application.process.session_id = "1"
587
588Card #0
589 Name: alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic
590 Driver: module-alsa-card.c
591 Owner Module: 7
592 Properties:
593 alsa.card = "0"
594 alsa.card_name = "sof-skl_hda_card"
595 alsa.long_card_name = "DellInc.-Inspiron5490--"
596 alsa.driver_name = "snd_soc_skl_hda_dsp"
597 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
598 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
599 device.bus = "pci"
600 device.vendor.id = "8086"
601 device.vendor.name = "Intel Corporation"
602 device.product.id = "9dc8"
603 device.string = "0"
604 device.description = "sof-skl_hda_card"
605 module-udev-detect.discovered = "1"
606 device.icon_name = "audio-card-pci"
607 Profiles:
608 HiFi: Play HiFi quality Music (sinks: 1, sources: 2, priority: 8000, available: yes)
609 off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
610 Active Profile: HiFi
611 Ports:
612 [Out] Speaker: Speaker (priority: 100, latency offset: 0 usec, not available)
613 Part of profile(s): HiFi
614 [Out] Headphone: Headphone (priority: 100, latency offset: 0 usec, available)
615 Part of profile(s): HiFi
616 [In] Dmic: Digital Micrphone (priority: 100, latency offset: 0 usec)
617 Part of profile(s): HiFi
618 [In] Microphone: Headset Mic (priority: 100, latency offset: 0 usec, available)
619 Part of profile(s): HiFi
diff --git a/checkbox_support/parsers/tests/test_pactl.py b/checkbox_support/parsers/tests/test_pactl.py
index a3d96dd..6f56d91 100644
--- a/checkbox_support/parsers/tests/test_pactl.py
+++ b/checkbox_support/parsers/tests/test_pactl.py
@@ -631,6 +631,16 @@ class DocumentTests(ParsingTestCase, PactlDataMixIn):
631 )[0]631 )[0]
632 self.assertEqual(len(document.record_list), 55)632 self.assertEqual(len(document.record_list), 55)
633633
634 def test_pactl_list_ports_with_pretag(self):
635 document = self.assertParses(
636 pactl.Document.Syntax, self.get_text("pa_ucm_pre_tag_bionic")
637 )[0]
638 self.assertEqual(len(document.record_list), 42)
639 self.assertEqual(document.record_list[27].name, "Sink #0")
640 self.assertEqual(
641 document.record_list[27].attribute_list[14].value[0].name,
642 "Speaker")
643
634 def test_pactl_list(self):644 def test_pactl_list(self):
635 document = self.assertParses(645 document = self.assertParses(
636 pactl.Document.Syntax, self.get_text("desktop-precise")646 pactl.Document.Syntax, self.get_text("desktop-precise")

Subscribers

People subscribed via source and target branches