From ffde7e6286d7919c2fec16ac245380fa6254d82d Mon Sep 17 00:00:00 2001 From: Peter Amrehn Date: Sat, 5 May 2018 12:20:58 +0200 Subject: [PATCH] fix returning wrong error code. Returned the error code of 'git submodule status' accidently. --- run-tests.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run-tests.ps1 b/run-tests.ps1 index 5c61a5fe5..d774f7a61 100644 --- a/run-tests.ps1 +++ b/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