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

Move wait_still_screen to the start of the loop #20662

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

alvarocarvajald
Copy link
Contributor

@alvarocarvajald alvarocarvajald commented Nov 21, 2024

There is a loop in the sles4sap/wizard_hana_install test module, which cycles until the sap-product-installation needle matches. On SUTs with only one disk, this is a good solution as it allows the test to continue faster, but on SUTs with more disks, it's possible that the dialog prompting the user to select the disk where HANA is going to be installed takes a few seconds to appear, which can cause the module to wrongly match with sap-product-installation which is the window behind the disk selection dialog.

This commit moves the wait_still_screen call from the end of the loop to the start of the same loop. Idea is that module will wait until screen settles before attempting to match either the disk selection dialog or the sap-product-installation needle, giving it more time to wait for the disk selection dialog to be shown.

Verification runs

There is a loop in the `sles4sap/wizard_hana_install` test module, which
cycles until the `sap-product-installation` needle matches. On SUTs with
only one disk, this is a good solution as it allows the test to continue
faster, but on SUTs with more disks, it's possible that the dialog
prompting the user to select the disk where HANA is going to be
installed takes a few seconds to appear, which can cause the module to
wrongly match with `sap-product-installation` which is the window behind
the disk selection dialog.

This commit moves the `wait_still_screen` call from the end of the loop
to the start of the same loop. Idea is that module will wait until
screen settles before attempting to match either the disk selection
dialog or the `sap-product-installation` needle, giving it more time to
wait for the disk selection dialog to be shown.
Copy link
Contributor

@mpagot mpagot left a comment

Choose a reason for hiding this comment

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

LGTM

@Dawei-Pang
Copy link
Contributor

LGTM

@alvarocarvajald alvarocarvajald merged commit 0cfd05c into os-autoinst:master Nov 21, 2024
10 checks passed
@alvarocarvajald alvarocarvajald deleted the sles4sap_wizard branch November 21, 2024 16:13
Copy link
Contributor

@BillAnastasiadis BillAnastasiadis left a comment

Choose a reason for hiding this comment

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

LGTM

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