ParseException in pactl.py when running audio/speaker-headphone-plug-detection

Bug #1983435 reported by Bin Li
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Support Library
New
High
Yujin.Wu

Bug Description

ID: com.canonical.certification::audio/speaker-headphone-plug-detection
Category: com.canonical.plainbox::audio
PURPOSE:
    Check that system detects speakers or headphones being plugged in
STEPS:
    1. Prepare a pair of headphones or speakers with a standard 3.5mm jack
    2. Locate the speaker / headphone jack on the device under test
    3. Run the test (you have 30 seconds from now on)
    4. Plug headphones or speakers into the appropriate jack
    5. Unplug the device for subsequent tests.
VERIFICATION:
    Verification is automatic, no action is required.
    The test times out after 30 seconds (and fails in that case).
Pick an action
    => press ENTER to continue
  c => add a comment
  s => skip this job
  q => save the session and quit
[csq]:
... 8< -------------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/nest-effxhuno.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 156, in <module>
    raise SystemExit(AudioPlugDetection.main())
  File "/tmp/nest-effxhuno.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 113, in main
    return cls(ns.timeout, ns.mode).run()
  File "/tmp/nest-effxhuno.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 126, in run
    initial_cfg = self.get_sound_config()
  File "/tmp/nest-effxhuno.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 76, in get_sound_config
    doc = parse_pactl_output(text)
  File "/usr/lib/python3/dist-packages/checkbox_support/parsers/pactl.py", line 586, in parse_pactl_output
    return Document.Syntax.parseString(output, parseAll=True)[0]
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 1955, in parseString
    raise exc
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 3814, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pyparsing.ParseException: Expected end of text, found '\t' (at char 1807), (line:48, col:1)
------------------------------------------------------------------------- >8 ---
Outcome: job failed

Revision history for this message
Bin Li (binli) wrote :
tags: added: oem-priority originate-from-1981534 sutton
Bin Li (binli)
Changed in checkbox-support:
assignee: nobody → Yujin.Wu (eugene2021)
importance: Undecided → High
no longer affects: oem-priority
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.