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 kill inexistent process from user postgress #9557

Merged
merged 1 commit into from Feb 17, 2020

Conversation

SergioAtSUSE
Copy link
Member

Test failed because kill process was missing the parameter PID, which
was sent empty.

Test failed because kill process was missing the parameter PID, which
was sent empty.
@@ -346,7 +346,7 @@ sub postgresql_cleanup {
systemctl 'stop postgresql';
systemctl 'disable postgresql';
systemctl 'is-active postgresql', expect_false => 1;
assert_script_run q{kill -s KILL $(ps -u postgres -o pid=)};
assert_script_run('kill -s KILL $(ps -u postgres -o pid=)') unless script_run('ps -u postgres -o pid=');
Copy link
Member

Choose a reason for hiding this comment

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

line 346 should deal with postgresql server, as it should stop upon received signal, and postmaster process should be dead by then.

@foursixnine foursixnine merged commit aac971c into os-autoinst:master Feb 17, 2020
@SergioAtSUSE SergioAtSUSE deleted the kill_postgres_process branch February 17, 2020 14:20
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