Skip to content

Commit

Permalink
chore(e2e): Rename log files to ensure uniqueness
Browse files Browse the repository at this point in the history
This updates the log files to be based on the scenario name instead of just the test package in case some scenarios run the same test package
  • Loading branch information
moduli committed Oct 23, 2023
1 parent 75769fa commit 315a5d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/enos-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,18 @@ jobs:
mkdir -p ./enos/terraform-plugin-cache
export ENOS_VAR_enos_user=$GITHUB_ACTOR && \
enos scenario launch --timeout 60m0s --chdir ./enos ${{ matrix.filter }}
- name: Rename e2e tests output
run : |
pushd enos
scenario=${{ matrix.filter }}
for f in *.log; do mv -- "$f" "${f%.log}_${scenario%% *}.log"; done
popd
// echo ${ss%% *}
- name: Upload e2e tests output
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: test-e2e-output
path: enos/test*.log
path: enos/*.log
retention-days: 5
- name: Get logs from postgres container
# Retrieve logs from the postgres container on a failed
Expand Down

0 comments on commit 315a5d3

Please sign in to comment.