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

XR Clean InstallImagesAndPackages improvement #90

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Tristou27
Copy link

Hello,

This small change in the XR Clean InstallImagesAndPackages should ease the error detection for steps "install add" and "install activate".
In recent software, these modes are launched by default with 'synchronous' keyword that block the user session during the install operation (no prompt). Errors were detected via the device.execute(error_pattern=...) syntax.

However, with older softwares (XR < 7) these install ops are launched in the background and the initial code was expecting only success answers with the device.expect() syntax. When "install add/activate" failed in the background, the error message was not catched by the stage and the script waited the timeout.

With this change, we should be able to handle both cases. I tried to keep it coherent with the previous code in the previous steps. Also, I prefered to make the entire stage fail (by failing a step) when install add/activate fail instead of continuing for nothing.

@lsheikal
Copy link
Contributor

lsheikal commented Jan 7, 2022

@Tristou27 can you attach logs for this change?

Copy link
Contributor

@LukasMcClelland LukasMcClelland left a comment

Choose a reason for hiding this comment

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

Please also create a changelog

Copy link
Contributor

@lsheikal lsheikal left a comment

Choose a reason for hiding this comment

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

Any update on this PR?

@Tristou27 Tristou27 changed the title initial commit for pull req XR Clean InstallImagesAndPackages improvement Jan 19, 2022
@Tristou27
Copy link
Author

Changelog file have been added, sorry for the delay.

@sjpatel21 sjpatel21 requested a review from bastell May 25, 2022 18:25
@lsheikal lsheikal self-requested a review July 5, 2022 17:56
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