Skip to content

Commit

Permalink
Check if the Nvidia popup appears somewhere else
Browse files Browse the repository at this point in the history
As stated in bsc#1220889, the Nvidia popup can show up randomly, so I
added a check to verify if it appears during the package installation
process.
  • Loading branch information
Pablo Herranz Ramírez committed Mar 7, 2024
1 parent 69f86ac commit 72c1ebf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/wsl/firstrun.pm
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ sub enter_user_details {
}

sub license {
# license agreement
assert_screen 'wsl-license';
# License agreement
# If we are enabling SLED, this screen will be checked
# a second time after installing modules. That's the reason of the timeout
assert_screen 'wsl-license', timeout => 240;
send_key 'alt-n';

if (is_sle) {
Expand Down Expand Up @@ -146,9 +148,8 @@ sub run {
# during the "development period". Also, it looks like that code was
# duplicated in L98 of this file. Didn't want to remove it completely
# just in case it returns...

# assert_screen ['trust_nvidia_gpg_keys', 'wsl-installation-completed'], timeout => 240;
# send_key 'alt-t' if (match_has_tag 'trust_nvidia_gpg_keys');
assert_screen ['trust_nvidia_gpg_keys', 'wsl-installation-completed'], timeout => 240;
send_key 'alt-t' if (match_has_tag 'trust_nvidia_gpg_keys');

assert_screen('wsl-installation-completed', 240);
send_key 'alt-f';
Expand Down

0 comments on commit 72c1ebf

Please sign in to comment.