-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
a5adb58
to
902c171
Compare
There was a problem hiding this 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/travis_script.sh
Outdated
../test/01_daemon_starts.sh | ||
cd .. |
There was a problem hiding this comment.
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.
test/travis_script.sh
Outdated
BACKEND_PID=$! | ||
|
||
sleep 2 # Lets wait a little bit so the server has started | ||
|
||
function exit_handler() { |
There was a problem hiding this comment.
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.
test/travis_script.sh
Outdated
function exit_handler() { | ||
rv=$? | ||
# Ignore errors in the exit handler | ||
set +e | ||
kill -9 $BACKEND_PID |
There was a problem hiding this comment.
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.
No description provided.