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

SPKI: Use RunE in cobra commands #3102

Merged
merged 1 commit into from
Sep 9, 2019
Merged

Conversation

oncilla
Copy link
Contributor

@oncilla oncilla commented Sep 5, 2019

This PR is in preparation to the scion-pki testing pipeline.
Instead of calling os.Exit() the tests now use cobra to return errors.
With this change, unit tests can check the exit codes of the application
without building and running the binary by directly invoking the
commands.


This change is Reviewable

@oncilla oncilla added the c/tooling SCION network tools label Sep 5, 2019
@oncilla oncilla added this to the Q3S3 milestone Sep 5, 2019
@scrye scrye added the feature New feature or request label Sep 6, 2019
Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 20 of 20 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

This PR is in preparation to the scion-pki testing pipeline.
Instead of calling os.Exit() the tests now use cobra to return errors.
With this change, unit tests can check the exit codes of the application
without building and running the binary by directly invoking the
commands.
@oncilla oncilla merged commit 17cc7b5 into scionproto:master Sep 9, 2019
@oncilla oncilla deleted the pub-return-err branch September 9, 2019 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/tooling SCION network tools feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants