@@ -82,6 +82,28 @@ compare_and_filter_logs() {
82
82
rm -f ${temp_output} ${temp_file} ${temp_final}
83
83
}
84
84
85
+ check_passed_known_issues () {
86
+ local file_passed_UT=" $1 "
87
+ local file_known_issue=" $2 "
88
+ local output_file=" ${3:- ${file_passed_UT% .* } _passed_known_issues.log} "
89
+
90
+ if [[ $# -lt 2 ]]; then
91
+ echo " [ERROR] Need 2 files to compare"
92
+ return 1
93
+ fi
94
+
95
+ echo " Checking for known issues that are now passing in $file_passed_UT "
96
+ grep -Fxf " $file_passed_UT " " $file_known_issue " > " $output_file "
97
+
98
+ echo -e " \n\033[1;32m[New passed cases Summary]\033[0m"
99
+ if [[ -s " $output_file " ]]; then
100
+ cat " $output_file "
101
+ echo -e " \n\033[1;32mTotal: $( wc -l < " $output_file " ) known issues are now passing\033[0m"
102
+ else
103
+ echo -e " \033[1;33mNo known issues are now passing\033[0m"
104
+ fi
105
+ }
106
+
85
107
if [[ " ${ut_suite} " == ' op_regression' || " ${ut_suite} " == ' op_regression_dev1' || " ${ut_suite} " == ' op_extended' || " ${ut_suite} " == ' op_transformers' ]]; then
86
108
grep -E " FAILED" " ${ut_suite} " _test.log | awk ' {print $1}' | grep -v " FAILED" > ./" ${ut_suite} " _failed.log
87
109
grep -E " have failures" " ${ut_suite} " _test.log | awk ' {print $1}' >> ./" ${ut_suite} " _failed.log
@@ -95,6 +117,10 @@ if [[ "${ut_suite}" == 'op_regression' || "${ut_suite}" == 'op_regression_dev1'
95
117
echo -e " Checking Failed cases in ${ut_suite} "
96
118
echo -e " ========================================================================="
97
119
compare_and_filter_logs " ${ut_suite} " _failed.log Known_issue.log
120
+ echo -e " ========================================================================="
121
+ echo -e " Checking New passed cases in Known issue list for ${ut_suite} "
122
+ echo -e " ========================================================================="
123
+ check_passed_known_issues " ${ut_suite} " _passed.log Known_issue.log
98
124
if [[ -f " ${ut_suite} _failed_filtered.log" ]]; then
99
125
num_failed=$( wc -l < " ./${ut_suite} _failed_filtered.log" )
100
126
else
@@ -112,9 +138,11 @@ if [[ "${ut_suite}" == 'op_ut' ]]; then
112
138
grep -E " FAILED" op_ut_with_skip_test.log | awk ' {print $1}' | grep -v " FAILED" > ./" ${ut_suite} " _with_skip_test_failed.log
113
139
grep -E " have failures" op_ut_with_skip_test.log | awk ' {print $1}' >> ./" ${ut_suite} " _with_skip_test_failed.log
114
140
grep -E " Timeout" op_ut_with_skip_test.log | grep " test" >> ./" ${ut_suite} " _with_skip_test_failed.log
141
+ grep " PASSED" op_ut_with_skip_test.log | awk ' {print $1}' > ./" ${ut_suite} " _with_skip_test_passed.log
115
142
grep -E " FAILED" op_ut_with_only_test.log | awk ' {print $1}' | grep -v " FAILED" > ./" ${ut_suite} " _with_only_test_failed.log
116
143
grep -E " have failures" op_ut_with_only_test.log | awk ' {print $1}' >> ./" ${ut_suite} " _with_only_test_failed.log
117
144
grep -E " Timeout" op_ut_with_only_test.log | grep " test" >> ./" ${ut_suite} " _with_only_test_failed.log
145
+ grep " PASSED" op_ut_with_only_test.log | awk ' {print $1}' > ./" ${ut_suite} " _with_only_test_passed.log
118
146
echo -e " ========================================================================="
119
147
echo -e " Show Failed cases in ${ut_suite} with skip"
120
148
echo -e " ========================================================================="
@@ -123,6 +151,10 @@ if [[ "${ut_suite}" == 'op_ut' ]]; then
123
151
echo -e " Checking Failed cases in ${ut_suite} with skip"
124
152
echo -e " ========================================================================="
125
153
compare_and_filter_logs " ${ut_suite} " _with_skip_test_failed.log Known_issue.log
154
+ echo -e " ========================================================================="
155
+ echo -e " Checking New passed cases in Known issue list for ${ut_suite} with skip"
156
+ echo -e " ========================================================================="
157
+ check_passed_known_issues " ${ut_suite} " _with_skip_test_passed.log Known_issue.log
126
158
if [[ -f " ${ut_suite} _with_skip_test_failed_filtered.log" ]]; then
127
159
num_failed_with_skip=$( wc -l < " ./${ut_suite} _with_skip_test_failed_filtered.log" )
128
160
else
@@ -136,6 +168,10 @@ if [[ "${ut_suite}" == 'op_ut' ]]; then
136
168
echo -e " Checking Failed cases in ${ut_suite} with only"
137
169
echo -e " ========================================================================="
138
170
compare_and_filter_logs " ${ut_suite} " _with_only_test_failed.log Known_issue.log
171
+ echo -e " ========================================================================="
172
+ echo -e " Checking New passed cases in Known issue list for ${ut_suite} with only"
173
+ echo -e " ========================================================================="
174
+ check_passed_known_issues " ${ut_suite} " _with_only_test_passed.log Known_issue.log
139
175
if [[ -f " ${ut_suite} _with_only_test_failed_filtered.log" ]]; then
140
176
num_failed_with_only=$( wc -l < " ./${ut_suite} _with_only_test_failed_filtered.log" )
141
177
else
186
222
if [[ " ${ut_suite} " == ' xpu_distributed' ]]; then
187
223
grep -E " ^FAILED" xpu_distributed_test.log | awk ' {print $2}' > ./" ${ut_suite} " _xpu_distributed_test_failed.log
188
224
grep -E " have failures" xpu_distributed_test.log | awk ' {print $1}' >> ./" ${ut_suite} " _xpu_distributed_test_failed.log
225
+ grep " PASSED" xpu_distributed_test.log | awk ' {print $1}' > ./" ${ut_suite} " _xpu_distributed_test_passed.log
189
226
echo -e " ========================================================================="
190
227
echo -e " Show Failed cases in ${ut_suite} xpu distributed"
191
228
echo -e " ========================================================================="
@@ -194,6 +231,10 @@ if [[ "${ut_suite}" == 'xpu_distributed' ]]; then
194
231
echo -e " Checking Failed cases in ${ut_suite} xpu distributed"
195
232
echo -e " ========================================================================="
196
233
compare_and_filter_logs " ${ut_suite} " _xpu_distributed_test_failed.log Known_issue.log
234
+ echo -e " ========================================================================="
235
+ echo -e " Checking New passed cases in Known issue list for ${ut_suite} "
236
+ echo -e " ========================================================================="
237
+ check_passed_known_issues " ${ut_suite} " _xpu_distributed_test_passed.log Known_issue.log
197
238
if [[ -f " ${ut_suite} _xpu_distributed_test_failed_filtered.log" ]]; then
198
239
num_failed_xpu_distributed=$( wc -l < " ./${ut_suite} _xpu_distributed_test_failed_filtered.log" )
199
240
else
0 commit comments