Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Improve Check Tool #473

Merged
merged 2 commits into from
Oct 19, 2022
Merged

Improve Check Tool #473

merged 2 commits into from
Oct 19, 2022

Conversation

wcwang
Copy link
Contributor

@wcwang wcwang commented Oct 19, 2022

Improve user experience of Check Tool

  • Update check tool command options
  • Enhance return value with error codes

Update the command options and corresponding output descriptions for
check tool.

* Use '-v' option to show version information, replacing the previous
  trivial function
* Update README document

Signed-off-by: Wenchao Wang <[email protected]>
Currently the result of failed check is returned as 1, which causes the
installer cannot read the failed reason exactly.

* Use the error code as the return value of check tool
  - 0 means success
  - Positive values mean the failed check (returns 1 when the command
    line argument is invalid)
  - Negative values mean runtime fault
* Support 11 system checks, each of which is indicated by a certain bit
  in the positive error code. The return value may be the bitwise
  combination of these failed status bits.

Signed-off-by: Wenchao Wang <[email protected]>
@wcwang wcwang requested a review from hyuan3 October 19, 2022 03:31
@wcwang wcwang merged commit eee2a37 into master Oct 19, 2022
@wcwang wcwang deleted the checktool-1.1.0 branch October 19, 2022 06:35
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.

2 participants