Skip to content

Conversation

smuppand
Copy link
Contributor

@smuppand smuppand commented Oct 9, 2025

This PR is going to enhance as per the #187

  • init_env

    • Robustly detect and export ROOT_DIR/TOOLS and mark idempotent load to ensure detect_platform & helpers are available in tests.
    • Silences ShellCheck hints for sourced utils without changing behavior.
  • AudioPlayback

    • Logs platform details via detect_platform; aligns network bring-up/rootfs size checks with Video (including optional Wi-Fi creds).
    • Adds pre-fetch content checks and richer asset fetch/extract logging.
    • Keeps existing flow/evidence checks; expands one-liners; fixes ShellCheck sourcing.
    • Proper exit codes: 0=PASS, 1=FAIL, 2=SKIP.
  • AudioRecord

    • Adds distinct exit codes (0/1/2) and fixes ShellCheck issues (SC1091, SC1010, rc=$?).
    • Multiline readability and platform detail logging, with no logic changes.

- Add __INIT_ENV_LOADED guard to prevent double sourcing.
- Detect ROOT_DIR (CWD or walk-up) and export TOOLS/paths.
- Quietly source utils; fail fast if utils/functestlib.sh missing.
- Fix empty so platform/network helpers are available.

Signed-off-by: Srikanth Muppandam <[email protected]>
…k; improve asset logging & exits

- Introduce --ssid/--password (no exports); keep existing flow and names.
- Print platform details via detect_platform, no new files/functions.
- Align with video: rootfs >=2GiB gate, network status/bring-up with NET_STABILIZE_SLEEP and TOP_LEVEL_RUN.
- Before fetching, check for existing clip, log source URL and final size. keep audio_ensure_clip_ready behavior.
- Proper exit codes (PASS/SKIP=0, FAIL=1) multi-line refactors, address ShellCheck SC1091/SC2034 without logic changes.

Signed-off-by: Srikanth Muppandam <[email protected]>
…, platform log

- Return distinct exit codes (0=PASS, 1=FAIL, 2=SKIP) to align with harness.
- Fix ShellCheck issues: SC1091 (sourcing), SC1010 (‘; then’), SC2124 (rc=0).
- Expand one-liners to multi-line for readability; no behavioral changes.
- Log platform details via detect_platform (with safe fallback to ‘unknown’).

Signed-off-by: Srikanth Muppandam <[email protected]>
Copy link
Contributor

@abbajaj806 abbajaj806 left a comment

Choose a reason for hiding this comment

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

LGTM

@abbajaj806 abbajaj806 merged commit 72cf028 into qualcomm-linux:main Oct 10, 2025
8 checks passed
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.

4 participants