From 10b283b3cad39631bced44361ef47ee4ec1189d5 Mon Sep 17 00:00:00 2001 From: saxena-anurag <43585259+saxena-anurag@users.noreply.github.com> Date: Sat, 22 Oct 2022 14:20:41 -0700 Subject: [PATCH] Add bpf2c test logs to test artifacts (#1485) * fix * add condition * fix step name * cleanup Co-authored-by: Alan Jowett Co-authored-by: Dave Thaler --- .github/workflows/reusable-test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/reusable-test.yml b/.github/workflows/reusable-test.yml index b1e6af0ba..08d20953e 100644 --- a/.github/workflows/reusable-test.yml +++ b/.github/workflows/reusable-test.yml @@ -245,6 +245,12 @@ jobs: shell: cmd run: wpr.exe -stop ${{github.workspace}}\${{env.BUILD_PLATFORM}}\${{env.BUILD_CONFIGURATION}}\TestLogs\ebpfforwindows.etl + - name: Copy any bpf2c test logs to TestLogs + if: (inputs.name == 'bpf2c') && (inputs.capture_etw == true) + shell: cmd + run: | + copy ${{github.workspace}}\${{env.BUILD_PLATFORM}}\${{env.BUILD_CONFIGURATION}}\*.log ${{github.workspace}}\${{env.BUILD_PLATFORM}}\${{env.BUILD_CONFIGURATION}}\TestLogs + - name: Check for crash dumps uses: andstor/file-existence-action@f02338908d150e00a4b8bebc2dad18bd9e5229b0 id: check_dumps