Skip to content

Commit

Permalink
Capture and print output of era_test_node running in background
Browse files Browse the repository at this point in the history
  • Loading branch information
MexicanAce committed Aug 14, 2023
1 parent cd9f87f commit 186293d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
tar -xzf era_test_node-ubuntu-latest.tar.gz
chmod +x era_test_node
echo "Starting node in background"
./era_test_node run &
./era_test_node run 2>&1 | tee era_test_node_ouput.log &
echo "PID=$!" >> $GITHUB_ENV
- name: Launch tests
Expand All @@ -32,9 +32,12 @@ jobs:
echo "Run tests"
make test-e2e
- name: Stop the era_test_node
- name: Stop the era_test_node and print output logs
id: stop_node
run: kill $PID
if: always() # This ensures the step runs even if the prior step (tests) fail
run: |
cat era_test_node_ouput.log
kill $PID
- name: Publish Test Results
uses: dorny/test-reporter@v1
Expand Down

0 comments on commit 186293d

Please sign in to comment.