You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: AudioPlayback no longer requires network when clips exist
Resolves#229
Problem:
AudioPlayback test was forcing network connections even when audio
files were already present locally, causing tests to fail in offline
environments.
Solution:
- Add --enable-network-download flag (opt-in, default: disabled)
- Add audio_check_clips_available() to check files before network ops
- Implement smart network gating: only connect if files missing AND flag enabled
- Auto-enable network download when WiFi credentials provided via CLI
Signed-off-by: Teja Swaroop Moida <tmoida@qti.qualcomm.com>
Copy file name to clipboardExpand all lines: Runner/suites/Multimedia/Audio/AudioPlayback/Read_me.md
+50-31Lines changed: 50 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ This suite automates the validation of audio playback capabilities on Qualcomm L
9
9
10
10
- Supports **PipeWire** and **PulseAudio** backends
11
11
- Plays audio clips with configurable format, duration, and loop count
12
+
-**Network operations are optional**: By default, no network connection is attempted. Use `--enable-network-download` to enable downloading missing audio files
12
13
- Automatically downloads and extracts audio assets if missing
13
14
- Validates playback using multiple evidence sources:
@@ -178,8 +194,10 @@ Diagnostic logs: dmesg snapshots, mixer dumps, playback logs per test case
178
194
- The script validates the presence of required tools before executing tests; missing tools result in SKIP.
179
195
- If any critical tool is missing, the script exits with an error message.
180
196
- Logs include dmesg snapshots, mixer dumps, and playback logs.
181
-
- Asset download requires network connectivity.
182
-
- Pass Wi-Fi credentials via SSID and PASSWORD environment variables to enable network access for asset downloads and playback validation.
197
+
-**Network operations are disabled by default**. Use `--enable-network-download` to download missing audio files.
198
+
- Pass Wi-Fi credentials via `--ssid` and `--password` CLI flags (or SSID/PASSWORD environment variables) to auto-enable network download.
199
+
- If audio clips are present locally, the test runs without any network operations (offline-capable).
200
+
- If clips are missing and network download is disabled, the test will SKIP with a helpful message.
183
201
- You can override default network probe targets using NET_PROBE_ROUTE_IP and NET_PING_HOST to avoid connectivity-related failures in restricted environments.
184
202
- Evidence-based PASS/FAIL logic ensures reliability even if backend quirks occur.
185
203
@@ -188,3 +206,4 @@ Diagnostic logs: dmesg snapshots, mixer dumps, playback logs per test case
188
206
SPDX-License-Identifier: BSD-3-Clause-Clear
189
207
(C) Qualcomm Technologies, Inc. and/or its subsidiaries.
0 commit comments