Re: [ovs-dev] [PATCH v4] checkpatch: Normalize exit code for Windows

2019-04-03 Thread Alin Gabriel Serdean
Applied on master! > On 19 Mar 2019, at 00:43, Alin Gabriel Serdean wrote: > > Using python `sys.exit(-1)` on Windows produces mixed results. > Let's take the following results from different shells: > CMD >> python -c "import sys; sys.exit(-1)" & echo %errorlevel% > 1 > MSYS > $ python -c "impo

[ovs-dev] [PATCH v4] checkpatch: Normalize exit code for Windows

2019-03-18 Thread Alin Gabriel Serdean
Using python `sys.exit(-1)` on Windows produces mixed results. Let's take the following results from different shells: CMD >python -c "import sys; sys.exit(-1)" & echo %errorlevel% 1 MSYS $ python -c "import sys; sys.exit(-1)" && echo $? 0 WSL $ python -c "import sys; sys.exit(-1)"; echo $? 255 th