]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Reset ERRORLEVEL in toolsetup.bat after edk2basetools check
authorRebecca Cran <rebecca@bsdio.com>
Sun, 13 Jun 2021 03:43:01 +0000 (11:43 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 25 Jun 2021 04:15:40 +0000 (04:15 +0000)
commit17143c4837393d42c484b42d1789b85b2cff1aaf
tree98ffd19118864a532c47d3a68387e27e5a3c68c7
parentf0a3f6d9c30bf0926959a23c1454053a9df5ae9d
BaseTools: Reset ERRORLEVEL in toolsetup.bat after edk2basetools check

When using the in-source BaseTools, edksetup.bat will exit with an
ERRORLEVEL of 1 because the line in toolsetup.bat
"%PYTHON_COMMAND% -c "import edk2basetools" >NUL 2>NUL"
fails.

Ensure ERRORLEVEL is set to 0 when edksetup.bat or toolsetup.bat is
successfully run.

Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
BaseTools/toolsetup.bat