File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 67
67
# SYCL_CTS_EXCLUDE_TEST_CATEGORIES - Optional file specifying a list
68
68
# of test categories to be excluded from the build.
69
69
echo "::group::Excluded test categories"
70
- cat $cts_exclude_filter
70
+ [ -f "$cts_exclude_filter" ] && cat " $cts_exclude_filter"
71
71
echo "::endgroup::"
72
72
fi
73
73
@@ -134,11 +134,13 @@ runs:
134
134
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/L0_GPU
135
135
fi
136
136
137
- while IFS= read -r line; do
138
- if [[ $line != \#* ]]; then
139
- rm "./build-cts/bin/test_$line"
140
- fi
141
- done < "$cts_exclude_filter"
137
+ if [ -f "$cts_exclude_filter" ]; then
138
+ while IFS= read -r line; do
139
+ if [[ $line != \#* ]]; then
140
+ rm "./build-cts/bin/test_$line"
141
+ fi
142
+ done < "$cts_exclude_filter"
143
+ fi
142
144
143
145
- name : Run SYCL CTS tests
144
146
# Proceed with execution even if the previous two steps did not succeed.
Original file line number Diff line number Diff line change 67
67
# SYCL_CTS_EXCLUDE_TEST_CATEGORIES - Optional file specifying a list
68
68
# of test categories to be excluded from the build.
69
69
echo "::group::Excluded test categories"
70
- cat $cts_exclude_filter
70
+ [ -f "$cts_exclude_filter" ] && cat " $cts_exclude_filter"
71
71
echo "::endgroup::"
72
72
fi
73
73
@@ -136,11 +136,13 @@ runs:
136
136
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/L0_GPU
137
137
fi
138
138
139
- while IFS= read -r line; do
140
- if [[ $line != \#* ]]; then
141
- rm "./build-cts/bin/test_$line"
142
- fi
143
- done < "$cts_exclude_filter"
139
+ if [ -f "$cts_exclude_filter" ]; then
140
+ while IFS= read -r line; do
141
+ if [[ $line != \#* ]]; then
142
+ rm "./build-cts/bin/test_$line"
143
+ fi
144
+ done < "$cts_exclude_filter"
145
+ fi
144
146
145
147
- name : Run SYCL CTS tests
146
148
# Proceed with execution even if the previous two steps did not succeed.
You can’t perform that action at this time.
0 commit comments