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

Do not assert_screen using serial terminal #9577

Merged
merged 1 commit into from Feb 19, 2020

Conversation

SergioAtSUSE
Copy link
Member

The test module suseconnect_scc uses serial terminal, which doesn't
support screenshots and therefore causes unreliable behavior.

@@ -49,7 +49,7 @@ sub clear_and_verify_console {
my ($self) = @_;

clear_console;
assert_screen('cleared-console');
assert_screen('cleared-console') unless testapi::is_serial_terminal();
Copy link
Member

Choose a reason for hiding this comment

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

please use:
use testapi qw(is_serial_terminal :DEFAULT);

so that you can call directly is_serial_terminal()

The test module suseconnect_scc uses serial terminal, which doesn't
support screenshots and therefore causes unreliable behavior.
@SergioAtSUSE
Copy link
Member Author

New verification run: http://openqa.slindomansilla-vm.qa.suse.de/tests/2226

@foursixnine foursixnine merged commit fefb123 into os-autoinst:master Feb 19, 2020
@SergioAtSUSE SergioAtSUSE deleted the postreg branch February 19, 2020 14:30
@@ -49,7 +49,7 @@ sub clear_and_verify_console {
my ($self) = @_;

clear_console;
assert_screen('cleared-console');
assert_screen('cleared-console') unless is_serial_terminal();
Copy link
Member

Choose a reason for hiding this comment

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

what do you do instead on the serial terminal? If you don't have this synchronisation points then I am sure followup test calls will fail. Otherwise the complete method would be useless, isn't it? Or in other words: Probably clear_and_verify_console really doesn't make any sense on serial terminals, does it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants