Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lkp-exec/install: Return success if package already installed #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jallen-amd
Copy link

When build_install_benchmarks encounters a pacakge that is already installed,
pack returns 0 and subsequently hits the [ -f $deb_pkg ] || return check.
In this case, we want to return success and continue with the installation.
However, since a return with no integer parameter will simply return the
result of the last statement, this returns false. Modify the return to
explicitly return 0.

Signed-off-by: John Allen [email protected]

When build_install_benchmarks encounters a pacakge that is already installed,
pack returns 0 and subsequently hits the [ -f $deb_pkg ] || return check.
In this case, we want to return success and continue with the installation.
However, since a return with no integer parameter will simply return the
result of the last statement, this returns false. Modify the return to
explicitly return 0.

Signed-off-by: John Allen <[email protected]>
@zhijianli88
Copy link
Contributor

Looks fengguang's repo is a bit out of date
this issue was already fixed on our https://github.com/intel/lkp-tests
intel@a23cd7a

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.

3 participants