This repository has been archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Increase main coverage #526
Merged
jodh-intel
merged 9 commits into
clearcontainers:master
from
jodh-intel:increase-main-coverage
Sep 8, 2017
Merged
Increase main coverage #526
jodh-intel
merged 9 commits into
clearcontainers:master
from
jodh-intel:increase-main-coverage
Sep 8, 2017
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add a new comment and move an existing one to the correct location. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Add a "defaultErrorFile" variable for parity with "defaultOutputFile" and to allow testing the fatal() function (which now uses defaultErrorFile). Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Add variables for CLI flags, commands and the before function and setup the CLI app using these variables. This simplifies main() and will make testing easier. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Introduced an explicity command-not-found handler to handle unknown sub-commands. Previously, if the runtime was invoked with an unknown command, it would error with: $ cc-runtime i-am-an-unknown-command No help topic for 'i-am-an-unknown-command' It now errors with: $ cc-runtime i-am-an-unknown-command Invalid command "i-am-an-unknown-command" Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Added a variable and function to generate the full version string to simplify main() and allow for easier testing. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
If makeVersionString() is unable to generate a version string, display the particular version element as "<<unknown>>" rather than defaulting to "". Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Restructured main() into a single call to make testing easier. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Added standard license header to "version_test.go". Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Add new tests to raise the unit-test coverage for "main.go" from 0% to 98.5%. Fixes clearcontainers#396. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Popular Images qa-passed 👍 |
Once this is merged, we can close #93. |
mcastelino
pushed a commit
to mcastelino/runtime
that referenced
this pull request
Dec 6, 2018
Remove the `initcall_debug` boot option from the kernel command-line as we don't need it any more and it generates a ton of boot messages that may well be impacting performance. Fixes clearcontainers#526. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.