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

tests: qa/standalone: Add trap for signals to restore the kernel core pattern #17026

Merged
merged 1 commit into from Aug 18, 2017

Conversation

dzafman
Copy link
Contributor

@dzafman dzafman commented Aug 15, 2017

No description provided.

@dzafman dzafman added the tests label Aug 15, 2017
@dzafman dzafman changed the title qa: Add trap to handle signals and resetore the kernel core pattern qa: Add trap to handle signals and restore the kernel core pattern Aug 15, 2017
…e pattern

Signed-off-by: David Zafman <dzafman@redhat.com>
@dzafman dzafman changed the title qa: Add trap to handle signals and restore the kernel core pattern tests: qa/standalone: Add trap for signals to resetore the kernel core pattern Aug 15, 2017
@dzafman dzafman changed the title tests: qa/standalone: Add trap for signals to resetore the kernel core pattern tests: qa/standalone: Add trap for signals to restore the kernel core pattern Aug 16, 2017
@dzafman
Copy link
Contributor Author

dzafman commented Aug 16, 2017

retest this please

@dzafman dzafman requested a review from tchaikov August 17, 2017 21:54
if [ -n "$precore" ]; then
sudo sysctl -w ${KERNCORE}=${precore}
fi
exit 0
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to exit 0. and might want to reuse this function at https://github.com/ceph/ceph/pull/17026/files#diff-5e483a2d055861968b99eacaa3688b6fR108.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tchaikov With daemons running if I don't exit here weird things happened. I don't remember exactly what happened, but I tried it with a common function. I think I had to ^C twice to get the test to stop running.

Copy link
Contributor

Choose a reason for hiding this comment

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

ahh, okay then!

@tchaikov tchaikov merged commit fbfd17b into ceph:master Aug 18, 2017
@dzafman dzafman deleted the wip-add-trap branch August 18, 2017 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants