-
Notifications
You must be signed in to change notification settings - Fork 244
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
Inconsistency in odo command exit code #1803
Comments
ping @kadel |
If commands results in error, return code needs to be non-zero. |
@girishramnani Found some weird behaviour observed which i believe is not acceptable for a cli tool. Due to the issue #1899 unfortunately it was not reported. When i am fixing the false positive issue via #1902 this is what i am hitting
Analysis Actual - For a graceful exit, message is redirected to stderr chanel Due to this inconsistency in behaviour pr #1902 is failing. I am increasing the priority to bring more attention to this issue. For now i am commenting the assertion statment to make CI pass. |
* Fix CmdShouldFail false positive * Commented test due to open issue #1803
[kind/bug]
What versions of software are you using?
odo version
: masterHow did you run odo exactly?
Actual behavior
Inconsistent exit code
Expected behavior
Exit code should be consistent through out the odo command/sub-command execution. For example:
On a fresh cluster
odo app describe test
returns 0 (graceful exit) where asodo app delete test -f
returns1
.In both the case either it should be 0 (graceful exit) or non-zero otherwise.
Any logs, error output, etc?
The text was updated successfully, but these errors were encountered: