Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Add overseer unit tests and fix two bugs #225

Merged
merged 3 commits into from
Jun 10, 2016

Conversation

markdryan
Copy link
Contributor

This commit adds some unit tests for ciao-launcher's overseer go routine. This brings launcher's test coverage up to 30%. The PR also contains a fix for #26. The bug was easily reproducible with the new tests so it needed to be fixed to avoid these new tests failing periodically. Finally, #184 is also fixed. test-cases now prints out the contents of stderr, if one of the packages fails its unit tests. This needed to be fixed to help debug the failing overseer test cases in travis.

Mark Ryan added 3 commits June 8, 2016 18:41
This commit adds some unit tests for the overseer go routine.  It
partially implements Issue ciao-project#1.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
Test-cases now gathers up all the output it receives on stderr
when running go test.  If any of the packages under test fail,
test-cases will dump out the collected stderr when it exits.
This should make it easy to figure out what went wrong.  Right
now all you know is that a test failed, which is not enough
information.

Fixed ciao-project#184

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
Using one ovsCh for delivering commands to the overseer from both
the main and the instance go routine was racy.  There was always
the chance that an instance routine could write to the ovsCh after
it had been closed by the main go routine but before the instance
had itself been asked to shutdown by the overseer, which would
lead to a panic.

Fixes ciao-project#26

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
@coveralls
Copy link

coveralls commented Jun 8, 2016

Coverage Status

Coverage increased (+3.7%) to 60.993% when pulling 7dd0f1d on markdryan:master into c218f4b on 01org:master.

@markdryan
Copy link
Contributor Author

@tpepper Could you merge this one?

@tpepper tpepper merged commit 01ca757 into ciao-project:master Jun 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants