Comment 20 for bug 1059544

Revision history for this message
Daniel Manrique (roadmr) wrote : Re: checkbox should depends on gstreamer1.0-alsa

How to reproduce this bug:

- Ensure that gstreamer1.0-alsa is NOT installed. It's not installed by default on Ubuntu flavours such as kubuntu or xubuntu. If you're running vanilla Ubuntu, you can sudo apt-get remove gstreamer1.0-alsa.

- Run this command:
PATH=$PATH:/usr/share/checkbox/scripts alsa_record_playback
- Expected result:
  Sound is recorded from the microphone for a few seconds, then played back through the speakers/headphones.

Actual result:
$ PATH=$PATH:/usr/share/checkbox/scripts alsa_record_playback
Traceback (most recent call last):
  File "/usr/share/checkbox/scripts/gst_pipeline_test", line 59, in <module>
    sys.exit(main())
  File "/usr/share/checkbox/scripts/gst_pipeline_test", line 42, in main
    element = Gst.parse_launch(args.PIPELINE)
  File "/usr/lib/python3/dist-packages/gi/types.py", line 113, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: no element "alsasrc"
/tmp/tmp.FcbJd1DjLy/test.wav: No such file or directory
rm: cannot remove ‘/tmp/tmp.FcbJd1DjLy/test.wav’: No such file or directory