Skip to content

Commit 12fbf79

Browse files
committed
[CI] show e2e results in summary (win)
Show the results in summary like it was done for Linux.
1 parent 37df391 commit 12fbf79

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/sycl-windows-run-tests.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,21 @@ jobs:
149149
cmake -GNinja -B build-e2e -S.\llvm\sycl\test-e2e -DSYCL_TEST_E2E_TARGETS="level_zero:gpu" -DCMAKE_CXX_COMPILER="clang++" -DLEVEL_ZERO_LIBS_DIR="D:\\github\\level-zero_win-sdk\\lib" -DLEVEL_ZERO_INCLUDE="D:\\github\\level-zero_win-sdk\\include" -DLLVM_LIT="..\\llvm\\llvm\\utils\\lit\\lit.py"
150150
- name: Run End-to-End tests
151151
if: inputs.tests_selector == 'e2e'
152-
shell: bash
152+
shell: bash {0}
153153
run: |
154154
# Run E2E tests.
155155
if [[ ${{inputs.compiler}} == 'icx' ]]; then
156156
export LIT_FILTER_OUT="compile_on_win_with_mdd"
157157
fi
158158
export LIT_OPTS="-v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests ${{ inputs.extra_lit_opts }}"
159-
cmake --build build-e2e --target check-sycl-e2e
159+
cmake --build build-e2e --target check-sycl-e2e > e2e.log 2>&1
160+
161+
exit_code=$?
162+
cat e2e.log
163+
if [ $exit_code -ne 0 ]; then
164+
awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Timed Out Tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log >> $GITHUB_STEP_SUMMARY
165+
fi
166+
exit $exit_code
160167
161168
- name: Run SYCL CTS Tests
162169
if: inputs.tests_selector == 'cts'

0 commit comments

Comments
 (0)