mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Add test highlighting the expectations * Propagate errors and call os.Exit only in 'main' functions See ExitInMain[1] and ExitInMain_ExitOnce[2] coding convention guidelines. [1] https://github.com/redhat-developer/odo/wiki/Dev:-Coding-Conventions#exit-in-main [2] https://github.com/redhat-developer/odo/wiki/Dev:-Coding-Conventions#exit-once * Handle errors returned by Cleanuper#Cleanup This makes sure the exit code of the command is mapped onto any error returned by Cleanup * Do not return an error when the watch loop in 'odo dev' is interrupted * Test that the exit code of 'odo dev' matches the error returned by the cleanup logic