File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -297,17 +297,39 @@ jobs:
297
297
if : inputs.tests_selector == 'cts'
298
298
env :
299
299
ONEAPI_DEVICE_SELECTOR : ${{ inputs.target_devices }}
300
+ # By-default GitHub actions execute the "run" shell script with -e option,
301
+ # so the execution terminates if any command returns a non-zero status.
302
+ # Since we're using a loop to run all test-binaries separately, some test
303
+ # may fail and terminate the execution. Setting "shell" value to override
304
+ # the default behavior.
305
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#custom-shell
306
+ shell : bash {0}
300
307
# FIXME: For some reason the "sub_group api" test-case is failing with
301
308
# SIGSEGV while running test_all, so running each binary separately.
302
309
# BTW test_all requires a lot of resources to build it, so probably it'll
303
310
# be better to build each binary also separately.
304
311
# run: |
305
312
# ./build-cts/bin/test_all $CTS_TEST_ARGS
306
313
run : |
314
+ status=""
315
+ failed_suites=""
307
316
for i in `ls -1 ./build-cts/bin`; do
308
317
if [ "$i" != "test_all" ]; then
309
318
echo "::group::Running $i"
310
319
build-cts/bin/$i
320
+ if [ $? -ne 0 ]; then
321
+ status=1
322
+ if [$failed_suites == ""]; then
323
+ failed_suites=$i
324
+ else
325
+ failed_suites="$failed_suites, $i"
326
+ fi
327
+ fi
311
328
echo "::endgroup::"
312
329
fi
313
330
done
331
+ if [ -n "$status" ]; then
332
+ echo "Failed suite(s): $failed_suites"
333
+ exit 1
334
+ fi
335
+ exit 0
Original file line number Diff line number Diff line change 73
73
target_devices : ext_oneapi_cuda:gpu
74
74
75
75
- name : SYCL-CTS
76
- runner : ' ["cts-cpu "]'
76
+ runner : ' ["Linux", "gen12 "]'
77
77
image : ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
78
78
image_options : -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
79
79
target_devices : opencl:cpu
You can’t perform that action at this time.
0 commit comments