Browse Source

fix returning wrong error code. Returned the error code of 'git submodule status' accidently.

pull/557/head
Peter Amrehn 8 years ago
parent
commit
ffde7e6286
  1. 5
      run-tests.ps1

5
run-tests.ps1

@ -90,8 +90,9 @@ Invoke-Expression $testRunnerCmd
cd $PSScriptRoot
$exitCodeOfTests = $LASTEXITCODE;
if (0 -ne ([int]$LASTEXITCODE)) {
if (0 -ne ([int]$exitCodeOfTests)) {
# check submodule status
$submoduleStatus = CheckSubmoduleStatus
if ([int]$submoduleStatus -eq 1) {
@ -108,4 +109,4 @@ if (0 -ne ([int]$LASTEXITCODE)) {
}
}
exit $LASTEXITCODE
exit $exitCodeOfTests

Loading…
Cancel
Save