Skip to content

Commit

Permalink
ETCM-8833 fix exitcode file for passing and failing of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ladamesny committed Nov 12, 2024
1 parent 2d9967a commit c5609a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions E2E-tests/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ test:
FROM +build
ARG CI_RUN
IF [ "$CI_RUN" = "true" ]
RUN --secret AWS_SECRET_ACCESS_KEY --secret AWS_ACCESS_KEY_ID --secret AWS_SESSION_TOKEN --no-cache --ssh eval $pytest_cmd --ci-run || echo $? > .exitcode
RUN --secret AWS_SECRET_ACCESS_KEY --secret AWS_ACCESS_KEY_ID --secret AWS_SESSION_TOKEN --no-cache --ssh \
(eval $pytest_cmd --ci-run; echo $? > .exitcode)
ELSE
RUN --mount=type=secret,target=/root/.aws/credentials,id=aws --no-cache --ssh eval $pytest_cmd || echo $? > .exitcode
RUN --mount=type=secret,target=/root/.aws/credentials,id=aws --no-cache --ssh \
(eval $pytest_cmd; echo $? > .exitcode)
END

test-artifacts:
Expand Down

0 comments on commit c5609a6

Please sign in to comment.