Skip to content

Run URM Tests through Debian Packages - #528

Open
Kartik Nema (kartnema) wants to merge 1 commit into
qualcomm-linux:mainfrom
kartnema:dev/add-urm-deb-dependency
Open

Run URM Tests through Debian Packages#528
Kartik Nema (kartnema) wants to merge 1 commit into
qualcomm-linux:mainfrom
kartnema:dev/add-urm-deb-dependency

Conversation

@kartnema

@kartnema Kartik Nema (kartnema) commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

On platforms which use Debian builds, like Glymur, enable test case runs by installing the appropriate testing package for URM: "userspace-resource-manager-tests". This package installs the necessary binaries and configs needed for testing.

The run.sh script already has instructions for running the tests, fetching and reporting the results in an appropriate manner.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please update the commit message to a more clear to reflect with the current changes.


if ! pkg_ensure_package_set urm; then
log_skip "$TESTNAME SKIP - required package set is not available: urm"
echo "$TESTNAME SKIP" >"$RES_FILE"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"RES_FILE" and "TESTNAME" have not been initialized when this failure path executes. they are assigned later at lines 55–58. If package recovery fails, the redirect targets an empty filename, no ".res" file is generated.

Move the complete package-recovery block below:

TESTNAME="userspace-resource-manager"
test_path="$(find_test_case_by_name "$TESTNAME")"
cd "$test_path" || exit 1
RES_FILE="./${TESTNAME}.res"

# shellcheck disable=SC1091
. "$TOOLS/lib_pkg_provider.sh"

if ! pkg_ensure_package_set urm; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Every Debian/Ubuntu run may perform avoidable package-manager, network, and package-upgrade work, increasing runtime, external dependencies, and flakiness.

Recommended fix:

if ! pkg_ensure_required_package_set_present urm; then
    log_skip "$TESTNAME SKIP - failed to ensure required package set: urm"
    echo "$TESTNAME SKIP" >"$RES_FILE"
    exit 0
fi

The shared helper explicitly documents that it avoids package-manager/network work when the required package set is already complete and verifies the package set again after recovery.

On platforms which use Debian builds, like Glymur, enable test case
runs by installing the appropriate debian tests package for URM,
"userspace-resource-manager-tests". This package installs the necessary
binaries and configs needed for testing.
The run.sh script already has instructions for running the tests,
fetching and reporting the results in an appropriate manner.

Signed-off-by: Kartik Nema <kartnema@qti.qualcomm.com>
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