Skip to content

Conversation

@tmoida
Copy link
Contributor

@tmoida tmoida commented Dec 17, 2025

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

Resolves qualcomm-linux#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>
- $REPO_PATH/Runner/utils/send-to-lava.sh AudioPlayback.res || true
- |
if [ "${ENABLE_NETWORK_DOWNLOAD}" = "true" ]; then
./run.sh --backend "${AUDIO_BACKEND}" --sink "${SINK_CHOICE}" --formats "${FORMATS}" --durations "${DURATIONS}" --loops "${LOOPS}" --timeout "${TIMEOUT}" --enable-network-download --ssid "${SSID}" --password "${PASSWORD}" || true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the ssid and password from the yaml usage. Instead, allow the script to accept a custom location for the clips. The CI will push the content to a specified location, which can then be provided as a parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AudioPlayback requires networking

2 participants