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

Add post_fail_hook for shutdown issue #5624

Merged
merged 1 commit into from
Aug 24, 2018
Merged

Add post_fail_hook for shutdown issue #5624

merged 1 commit into from
Aug 24, 2018

Conversation

Zaoliang
Copy link
Contributor

@Soulofdestiny
Copy link
Contributor

please tidy

@Zaoliang
Copy link
Contributor Author

@Soulofdestiny I did this already. I had problem with my older tidy version.

@Soulofdestiny
Copy link
Contributor

@OleksandrOrlov could you please check - you've implemented a lot around shutdown recently

@@ -55,6 +55,8 @@ sub run {
power_action('reboot', keepconsole => 1, textmode => 1);

$self->handle_uefi_boot_disk_workaround() if get_var('MACHINE') =~ qr'aarch64';
# post_fail_hook from opensusebasetest triggers if shutdown takes too long time
$self->{in_wait_boot} = 1;
Copy link
Contributor

@OleksandrOrlov OleksandrOrlov Aug 24, 2018

Choose a reason for hiding this comment

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

I guess, the $self->{in_wait_boot} = 1; line should be before power_action('reboot'...), as assert_shutdown function is located inside of the power_action.

If it will fail on assert_shutdown, then code will never reach the $self->{in_wait_boot} = 1; line and in_wait_boot in post_fail_hook will equal to '0'.

@OleksandrOrlov OleksandrOrlov merged commit af890e0 into os-autoinst:master Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants