summaryrefslogtreecommitdiff
path: root/units/audio
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2020-07-19 16:55:47 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2020-07-19 16:55:47 +0200
commit2909dc3ec5fe877ffa25933ac936f4a26b9a2c2b (patch)
treee037f6bba1f9d2c5a7a4d8478c2845f3e3c91313 /units/audio
parent2b1956220674c34911ce718e065bba8370c7a4ef (diff)
units: Fix all jobs commands shellcheck errors
Diffstat (limited to 'units/audio')
-rw-r--r--units/audio/jobs.pxu76
1 files changed, 38 insertions, 38 deletions
diff --git a/units/audio/jobs.pxu b/units/audio/jobs.pxu
index 4d552d5..925f1ef 100644
--- a/units/audio/jobs.pxu
+++ b/units/audio/jobs.pxu
@@ -19,11 +19,11 @@ requires:
package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
package.name == 'pulseaudio-utils'
command:
- audio_settings.py store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --device=pci --volume=50
gst_pipeline_test.py -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_description:
PURPOSE:
@@ -51,11 +51,11 @@ requires:
package.name == 'pulseaudio-utils'
flags: also-after-suspend-manual
command:
- audio_settings.py store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --verbose --device=hdmi --volume=50
gst_pipeline_test.py -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_purpose:
HDMI audio interface verification
@@ -80,11 +80,11 @@ requires:
package.name == 'pulseaudio-utils'
flags: also-after-suspend-manual
command:
- audio_settings.py store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --verbose --device=hdmi --volume=50
gst_pipeline_test.py -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_purpose:
DisplayPort audio interface verification
@@ -110,11 +110,11 @@ requires:
package.name == 'pulseaudio-utils'
flags: also-after-suspend-manual
command:
- audio_settings.py store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --verbose --device=hdmi --volume=50
gst_pipeline_test.py -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_purpose:
Thunderbolt audio interface verification
@@ -140,11 +140,11 @@ requires:
package.name == 'pulseaudio-utils'
flags: also-after-suspend-manual
command:
- audio_settings.py store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --verbose --device=hdmi --volume=50
gst_pipeline_test.py -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_purpose:
Thunderbolt audio interface verification
@@ -171,11 +171,11 @@ requires:
package.name == 'pulseaudio-utils'
flags: also-after-suspend-manual
command:
- audio_settings.py store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --verbose --device=hdmi --volume=50
gst_pipeline_test.py -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_purpose:
DisplayPort audio via USB Type-C port interface verification
@@ -202,11 +202,11 @@ requires:
package.name == 'pulseaudio-utils'
flags: also-after-suspend-manual
command:
- audio_settings.py store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --verbose --device=hdmi --volume=50
gst_pipeline_test.py -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --verbose --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_purpose:
HDMI audio via USB Type-C port interface verification
@@ -227,11 +227,11 @@ requires:
package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
package.name == 'pulseaudio-utils'
command:
- audio_settings.py store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --device=pci --volume=50
gst_pipeline_test.py -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_description:
PURPOSE:
@@ -253,11 +253,11 @@ requires:
package.name == 'pulseaudio-utils'
package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
command:
- audio_settings.py store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --device=pci --volume=50
alsa_record_playback.sh
EXIT_CODE=$?
- audio_settings.py restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_description:
PURPOSE:
@@ -280,11 +280,11 @@ requires:
package.name == 'pulseaudio-utils'
package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
command:
- audio_settings.py store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --device=pci --volume=50
alsa_record_playback.sh
EXIT_CODE=$?
- audio_settings.py restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_description:
PURPOSE:
@@ -306,11 +306,11 @@ requires:
package.name == 'pulseaudio-utils'
package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
command:
- audio_settings.py store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --device=usb --volume=50
alsa_record_playback.sh
EXIT_CODE=$?
- audio_settings.py restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_description:
PURPOSE:
@@ -343,7 +343,7 @@ plugin: shell
category_id: com.canonical.plainbox::audio
id: audio/alsa_info_collect
estimated_duration: 2.0
-command: alsa_info --no-dialog --no-upload --output ${PLAINBOX_SESSION_SHARE}/alsa_info.log
+command: alsa_info --no-dialog --no-upload --output "${PLAINBOX_SESSION_SHARE}"/alsa_info.log
_description:
Collect audio-related system information. This data can be used to
simulate this computer's audio subsystem and perform more detailed tests
@@ -354,7 +354,7 @@ category_id: com.canonical.plainbox::audio
id: audio/alsa_info_attachment
depends: audio/alsa_info_collect
estimated_duration: 1.0
-command: [ -e ${PLAINBOX_SESSION_SHARE}/alsa_info.log ] && cat ${PLAINBOX_SESSION_SHARE}/alsa_info.log
+command: [ -e "${PLAINBOX_SESSION_SHARE}"/alsa_info.log ] && cat "${PLAINBOX_SESSION_SHARE}"/alsa_info.log
_description:
Attaches the audio hardware data collection log to the results.
@@ -416,11 +416,11 @@ requires:
package.name == 'pulseaudio-utils'
package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
command:
- audio_settings.py store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --device=pci --volume=50
alsa_record_playback.sh
EXIT_CODE=$?
- audio_settings.py restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_description:
PURPOSE:
@@ -486,11 +486,11 @@ requires:
package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
package.name == 'pulseaudio-utils'
command:
- audio_settings.py store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --device=pci --volume=50
gst_pipeline_test.py -t 10 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_description:
PURPOSE:
@@ -514,11 +514,11 @@ requires:
package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
package.name == 'pulseaudio-utils'
command:
- audio_settings.py store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --device=pci --volume=50
gst_pipeline_test.py -t 10 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_description:
PURPOSE:
@@ -553,11 +553,11 @@ requires:
package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
package.name == 'pulseaudio-utils'
command:
- audio_settings.py store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
audio_settings.py set --device=pci --volume=50
gst_pipeline_test.py -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
EXIT_CODE=$?
- audio_settings.py restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings.py restore --file="$PLAINBOX_SESSION_SHARE"/pulseaudio_settings
exit $EXIT_CODE
_description:
PURPOSE:
@@ -615,8 +615,8 @@ requires:
package.name == 'alsa-base'
_description: Record mixer settings after suspending 30 times.
command:
- audio_settings.py store --file=$PLAINBOX_SESSION_SHARE/audio_settings_after_suspend_30_cycles
- diff $PLAINBOX_SESSION_SHARE/audio_settings_before_suspend $PLAINBOX_SESSION_SHARE/audio_settings_after_suspend_30_cycles
+ audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend_30_cycles
+ diff "$PLAINBOX_SESSION_SHARE"/audio_settings_before_suspend "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend_30_cycles
id: audio/detect-playback-devices
_summary: Check that at least one audio playback device exits
@@ -627,9 +627,9 @@ imports: from com.canonical.plainbox import manifest
requires:
manifest.has_audio_playback == 'True'
command:
- COUNT=$(alsa_pcm_info.py | grep Playback | wc -l)
+ COUNT=$(alsa_pcm_info.py | grep -c Playback)
echo "Count: $COUNT"
- if [ $COUNT -eq 0 ]; then
+ if [ "$COUNT" -eq 0 ]; then
exit 1
fi
estimated_duration: 1s
@@ -643,9 +643,9 @@ imports: from com.canonical.plainbox import manifest
requires:
manifest.has_audio_capture == 'True'
command:
- COUNT=$(alsa_pcm_info.py | grep Capture | wc -l)
+ COUNT=$(alsa_pcm_info.py | grep -c Capture)
echo "Count: $COUNT"
- if [ $COUNT -eq 0 ]; then
+ if [ "$COUNT" -eq 0 ]; then
exit 1
fi
esimated_duration: 1s