Minor fix(1) for TestCodebase [ARM]

This commit is contained in:
Kevin Rowlandson 2020-07-03 14:46:15 +01:00
parent adbb959358
commit d56d1b7346
No known key found for this signature in database
GPG key ID: F33348ACAE26BE84

View file

@ -341,7 +341,7 @@ function TestCodebase() {
# Need to run PowerShell commands using pwsh -c, also exit with exit code from inner subshell
LINT_CMD=$(
cd "$GITHUB_WORKSPACE/$TEST_CASE_FOLDER" || exit
pwsh -c "($LINTER_COMMAND $FILE)"
pwsh -NoProfile -NoLogo -Command "$LINTER_COMMAND $FILE; if (\$Error.Count) { exit 1 }"
exit $? 2>&1
)
else