Commit 06f92f13 authored by Matthew Slipper's avatar Matthew Slipper

ci: write e2e test logs to file

Write e2e test logs to file in addition to standard output in order to make debugging easier. CCI will truncate output over 50M.

Closes https://github.com/ethereum-optimism/client-pod/issues/319
parent 283f0aa2
......@@ -856,11 +856,16 @@ jobs:
- run:
name: run tests
command: |
mkdir -p /testlogs
export OP_E2E_CANNON_ENABLED="<<parameters.cannon_enabled>>"
# Note: We don't use circle CI test splits because we need to split by test name, not by package. There is an additional
# constraint that gotestsum does not currently (nor likely will) accept files from different pacakges when building.
JUNIT_FILE=/tmp/test-results/<<parameters.module>>_<<parameters.target>>.xml make <<parameters.target>>
JUNIT_FILE=/tmp/test-results/<<parameters.module>>_<<parameters.target>>.xml make <<parameters.target>> 2>&1 | tee /testlogs/test.log
working_directory: <<parameters.module>>
- store_artifacts:
path: /testlogs
when: always
- store_test_results:
path: /tmp/test-results
......
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