Skip to content

Conversation

smuppand
Copy link
Contributor

@smuppand smuppand commented Sep 2, 2025

This PR makes fastrpc_test invocation deterministic in both LAVA and manual runs by preferring the /usr/bin build, and only using /bin when explicitly allowed. It also lets callers override the binary and assets locations via flags.

  • PATH/hash and early lookups were picking /bin/fastrpc_test, which can fail on ramdisk with ENOENT due to a different dynamic loader.
  • We want predictable behavior without relying on PATH order or overlay timing.

@smuppand smuppand requested a review from abbajaj806 September 2, 2025 17:17
…/bin unless explicitly allowed

- Always prefer /usr/bin/fastrpc_test (do not rely on PATH ordering or shell hash).
- Support --bin-dir <dir> to point at a specific install prefix (runs <dir>/fastrpc_test).
- Support --assets-dir <dir>; expects <dir>/linux/ (defaults to /usr/bin or $BINDIR/linux).
- Only use /bin/fastrpc_test when explicitly allowed via ALLOW_BIN_FASTRPC=1 (or --bin-dir /bin).
- Remove /opt probing and any overlay timing logic—image construction guarantees /usr/bin.
- Invoke fastrpc_test as -d 3 -t linux (drop -U 1 user-PD flag).
- Keep result/log behavior unchanged; cd into the resolved assets dir so linux/ lookups work.

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.

Looks Good to Me

@abbajaj806 abbajaj806 merged commit c1396e3 into qualcomm-linux:main Sep 2, 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.

2 participants