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

Code coverage using coveralls #451

Merged
merged 11 commits into from
Apr 5, 2018
Merged

Code coverage using coveralls #451

merged 11 commits into from
Apr 5, 2018

Conversation

viklund
Copy link
Member

@viklund viklund commented Apr 4, 2018

No description provided.

Copy link
Member

@kusalananda kusalananda left a comment

Choose a reason for hiding this comment

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

Looks ok. I have comments but it's ok as it is. Feel free to fix the things that I have commented on, or don't.

../test/01_daemon_starts.sh
cd ..
Copy link
Member

Choose a reason for hiding this comment

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

Use (cd backend && ../test/01_daemon_starts.sh) instead of changing directory back and forth.

BACKEND_PID=$!

sleep 2 # Lets wait a little bit so the server has started

function exit_handler() {
Copy link
Member

Choose a reason for hiding this comment

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

Drop the function keyword form the function definition.

function exit_handler() {
rv=$?
# Ignore errors in the exit handler
set +e
kill -9 $BACKEND_PID
Copy link
Member

Choose a reason for hiding this comment

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

Does it work with a plain kill? kill -9 is not nice, but it may not matter much here.

@viklund viklund merged commit b77e00b into develop Apr 5, 2018
@viklund viklund deleted the feature/code-coverage branch April 5, 2018 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants