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

2019-03-15 Thread Ben Pfaff
On Wed, Mar 13, 2019 at 04:03:46PM +0200, 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 "import sys;

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

2019-03-13 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