Commit 177cb5b6 authored by uxrog's avatar uxrog
Browse files

Set pipefail in flammenwehrfer in order to capture mjtest exit code instead of tee exit code

parent 8c1c74f1
Pipeline #184671 failed with stage
in 16 minutes and 26 seconds
......@@ -33,11 +33,14 @@ GITHUB_URL="https://api.github.com/repos/$GITHUB_PATH"
# |_|\___||___/\__|_|_| |_|\__, | (_) (_) (_)
# |___/
# Create copy of stdout to capture and stream stdout in subshell
# Set pipefail to get mjtest exit code instead of tee exit code
exec 3>&1
set -o pipefail
MJ_OUTPUT="$(/mjtest/mjt.py lexer syntax ast semantic compile-firm /compiler-under-test/run 2>&1 | tee /dev/fd/3)"
MJ_EXIT_CODE="$?"
# Close copy
# Close copy, unset pipefail
exec 3>&-
set +o pipefail
if [[ "$USE_FLAMMENWEHRFER" != 1 ]] || [[ "$CI_COMMIT_BRANCH" != "master" ]]; then
echo "Flammenwehrfer disabled, checked for branch '$CI_COMMIT_BRANCH'"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment