Skip to content

Commit

Permalink
test: fix e2e tests debug log format
Browse files Browse the repository at this point in the history
Refs: ETCM-7672
  • Loading branch information
rsporny committed Dec 10, 2024
1 parent 95736ba commit 922034c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,6 @@ jobs:
--decrypt=true \
--markers="$MARKERS"
- name: Add Line Numbers and Timestamps to debug.log
if: always()
run: |
cd E2E-tests
awk '{print strftime("[%Y-%m-%d %H:%M:%S]"), $0}' debug.log > debug_with_timestamps.log
nl -ba -s ' ' -w 8 debug_with_timestamps.log > debug_with_timestamps_and_line_numbers.log
mv debug_with_timestamps_and_line_numbers.log debug.log
- name: Archive Debug Log
if: always()
uses: actions/upload-artifact@v4
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,6 @@ jobs:
--decrypt=true \
--markers="$MARKERS"
- name: Add Line Numbers and Timestamps to debug.log
if: always()
run: |
cd E2E-tests
awk '{print strftime("[%Y-%m-%d %H:%M:%S]"), $0}' debug.log > debug_with_timestamps.log
nl -ba -s ' ' -w 8 debug_with_timestamps.log > debug_with_timestamps_and_line_numbers.log
mv debug_with_timestamps_and_line_numbers.log debug.log
- name: Archive Debug Log
if: always()
uses: actions/upload-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions E2E-tests/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ log_cli = True
log_cli_level = info
log_file = debug.log
log_file_level = debug
log_file_format = %(asctime)s %(levelname)-8s [logger=%(name)s, file=%(filename)s:%(lineno)d] %(message)s
log_file_date_format = %Y-%m-%d %H:%M:%S
addopts = -ra
--tb=short
--show-capture=no
Expand Down

0 comments on commit 922034c

Please sign in to comment.