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

Exit codes indicate success or failure #33

Merged
merged 2 commits into from
Feb 13, 2019

Conversation

foeb
Copy link
Contributor

@foeb foeb commented Feb 13, 2019

Discussed here: #32

To implement this, we would need to check for the exit code in QEMU:

  • If it's 0, do everything the same way as before for backwards compatibility.
  • An exit code of 2 indicates success -> mark the test as succeeded without looking at the serial output
  • An exit code of 3 indicates failure -> mark the test as failed and print every serial output after a special string such as failed\n or test failed:.

Thanks for considering this feature!

@phil-opp
Copy link
Member

Thanks a lot! Looks good to me.

bors r+

bors bot added a commit that referenced this pull request Feb 13, 2019
33: Exit codes indicate success or failure r=phil-opp a=foeb

Discussed here: #32

> To implement this, we would need to check for the exit code in QEMU:
> * If it's `0`, do everything the same way as before for backwards compatibility.
> * An exit code of `2` indicates success -> mark the test as succeeded without looking at the serial output
> * An exit code of `3` indicates failure -> mark the test as failed and print every serial output after a special string such as `failed\n` or `test failed:`.

Thanks for considering this feature!

Co-authored-by: Phoebe Bell <minaphoebebell@gmail.com>
@bors
Copy link
Contributor

bors bot commented Feb 13, 2019

Build succeeded

@bors bors bot merged commit c252e1c into rust-osdev:master Feb 13, 2019
@phil-opp
Copy link
Member

Published as version 0.6.5

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.

None yet

2 participants