From 72608d2f99ffefa443ac2795e2f5b32a0ba4a2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Sporny?= Date: Tue, 10 Dec 2024 12:20:53 +0100 Subject: [PATCH] test: fix e2e tests debug log format Refs: ETCM-7672 --- .github/workflows/devnet.yml | 8 -------- .github/workflows/staging.yml | 8 -------- E2E-tests/pytest.ini | 2 ++ 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/devnet.yml b/.github/workflows/devnet.yml index 710e2d99f..9c11b816f 100644 --- a/.github/workflows/devnet.yml +++ b/.github/workflows/devnet.yml @@ -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 diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 78d8fc261..e5c4273b8 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -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 diff --git a/E2E-tests/pytest.ini b/E2E-tests/pytest.ini index 30a94cb77..42a5137b5 100644 --- a/E2E-tests/pytest.ini +++ b/E2E-tests/pytest.ini @@ -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